[pgpool-general: 8350] Re: Jdbc driver harm cache hit ratio

Tatsuo Ishii ishii at sraoss.co.jp
Wed Aug 3 17:27:08 JST 2022

> Hi,
> I ran query load with two different drivers via pgpool with cache enabled.
> 1. With psychopg2 which generates simple query and I got 91% cache hit
> ratio.
> 2. I ran the same load with jdbc which generates extended query and I got
> 0.03% cache hit ratio.
> Any thoughts? Am I missing some configuration maybe?

Please a section in the manual:


As explained in the doc, JDBC by default operates in extended query
mode. In the mode the chance to create query cache tends to be smaller
than simple query because query cache will not be created until sync
message is sent from frontend.

Also you might want to inspect pgpool log with log_client_messages and
log_statement enabled to find the timing of sync message being sent
from frontend.

Best reagards,
Tatsuo Ishii
English: http://www.sraoss.co.jp/index_en.php

More information about the pgpool-general mailing list