Re: Fwd: different execution time for the same query (and same DB status)

2021-03-12 Thread Francesco De Angelis
I have re-tested the execution times with several different values of shared_buffers in the range 256 MB - 4 GB. It didn't solve the problem and I noticed that for values greater than 3GB the executions halt very frequently. I also tried to disable JIT and this further slowed it down. But there is

Re: Fwd: different execution time for the same query (and same DB status)

2021-03-10 Thread Francesco De Angelis
Hello, yes exactly in the previous analyses, as mentioned in the wiki, I ran EXPLAIN (ANALYZE, BUFFERS)* query*, which took much longer to complete (around 30 minutes) as showed in https://explain.depesz.com/s/gHrb and https://explain.depesz.com/s/X2as . As you said, I did the new tests with EXPLAI

Re: Fwd: different execution time for the same query (and same DB status)

2021-03-10 Thread Michael Lewis
I would increase shared_buffers to 1GB or more. Also, it would be very interesting to see these queries executed with JIT off.

Re: Fwd: different execution time for the same query (and same DB status)

2021-03-10 Thread Justin Pryzby
On Sat, Mar 06, 2021 at 10:40:00PM +0100, Francesco De Angelis wrote: > The problem is the following: the query can take between 20 seconds and 4 > minutes to complete. Most of times, when I run the query for the first time > after the server initialisation, it takes 20 seconds; but if I re-run it