Quantcast
Viewing all articles
Browse latest Browse all 18770

What is in the InnoDB buffer pool?

This query might already be possible with MySQL 5.6, but that isn't GA yet and I don't use it yet. The data for this is also collected without scanning the buffer pool LRU and without locking the buffer pool mutex. It is always better to avoid adding contention on an already contended mutex. Hopefully the db-perf team can use this data to make the database tier more efficient.

 

select table_name, sum(innodb_buffer_pool_pages) n_pages

from table_statistics

group by table_name

order by 2 desc limit 10

 

+------------------+---------+

| table_name       | n_pages |

+------------------+---------+

| table_one       |   20149 | 

| table_four      |   12912 | 

| table_seven     |    6914 | 


PlanetMySQL Voting: Vote UP / Vote DOWN

Viewing all articles
Browse latest Browse all 18770

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>