Same query executed in sequence, same execution time?

11 Views Asked by At

I was measuring execution time of one query to my locally hosted Postgresql 9.4. I did it in sequence in Java application (JDBC) and made 100 runs in loop. Whole loop was made in one connection. Everytime the query took about 10 seconds to execute. I use default postgresql.conf with one modification:
shared_buffers = 4GB
I got 16GB of RAM, OS is Debian 9. Why is that query not cached?

0

There are 0 best solutions below