■ CACHE HIT 비율 조회하기

------------------------------------------------------------------------------------------------------------------------

 

SELECT

    SUM(HEAP_BLKS_READ)                                             AS HEAP_READ

   ,SUM(HEAP_BLKS_HIT)                                              AS HEAP_HIT

   ,(SUM(HEAP_BLKS_HIT) - SUM(HEAP_BLKS_READ)) / SUM(HEAP_BLKS_HIT) AS RATIO

FROM PG_STATIO_USER_TABLES;

 

------------------------------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요