Difference between revisions of "Cache hit ratio"

From wikieduonline
Jump to navigation Jump to search
Line 10: Line 10:
 
   [[pg_statio_user_tables]];
 
   [[pg_statio_user_tables]];
  
 +
== Related terms ==
 +
* [[TablePlus]]
  
 
== See also ==
 
== See also ==

Revision as of 09:32, 5 August 2021


PostgreSQL:

SELECT 
  sum(heap_blks_read) as heap_read,
  sum(heap_blks_hit)  as heap_hit,
  sum(heap_blks_hit) / (sum(heap_blks_hit) + sum(heap_blks_read)) as ratio
FROM 
  pg_statio_user_tables;

Related terms

See also

Advertising: