Re: [PERFORM] SELECT slows down on sixth execution

2015-10-14 Thread Jonathan Rogers
On 10/14/2015 05:00 AM, Albe Laurenz wrote: > Jonathan Rogers wrote: >> I have a very complex SELECT for which I use PREPARE and then EXECUTE. >> The first five times I run "explain (analyze, buffers) execute ..." in >> psql, it takes about 1s. Starting with the sixth execution, the plan >> changes

Re: [PERFORM] SELECT slows down on sixth execution

2015-10-14 Thread Pavel Stehule
Hi 2015-10-14 9:38 GMT+02:00 Jonathan Rogers : > I have a very complex SELECT for which I use PREPARE and then EXECUTE. > The first five times I run "explain (analyze, buffers) execute ..." in > psql, it takes about 1s. Starting with the sixth execution, the plan > changes and execution time doub

Re: [PERFORM] SELECT slows down on sixth execution

2015-10-14 Thread Albe Laurenz
Jonathan Rogers wrote: > I have a very complex SELECT for which I use PREPARE and then EXECUTE. > The first five times I run "explain (analyze, buffers) execute ..." in > psql, it takes about 1s. Starting with the sixth execution, the plan > changes and execution time doubles or more. The slower pl

[PERFORM] SELECT slows down on sixth execution

2015-10-14 Thread Jonathan Rogers
I have a very complex SELECT for which I use PREPARE and then EXECUTE. The first five times I run "explain (analyze, buffers) execute ..." in psql, it takes about 1s. Starting with the sixth execution, the plan changes and execution time doubles or more. The slower plan is used from then on. If I D