QUERY_CACHE_INFO plugin
You are viewing an old version of this article. View
the current version here.
QUERY_CACHE_INFO
allow to see the contents of the query cache. It creates a table in the INFORMATION_SCHEMA
that shows all queries that are in the cache. One must have PROCESS
privilege to use this table.
MariaDB [test]> select statement_schema, statement_text, result_blocks_count, --> result_blocks_size from information_schema.query_cache_info; +------------------+------------------+---------------------+--------------------+ | statement_schema | statement_text | result_blocks_count | result_blocks_size | +------------------+------------------+---------------------+--------------------+ | test | select * from t1 | 1 | 512 | +------------------+------------------+---------------------+--------------------+
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.