Re: Please help! Query jumps from 1s -> 4m

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Jamie Thompson <jthompson(dot)neuk(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Please help! Query jumps from 1s -> 4m
Date: 2020-05-04 19:12:01
Message-ID: 20200504191201.GU28974@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, May 04, 2020 at 08:07:07PM +0100, Jamie Thompson wrote:
> Additionally, the execution plans for the 10th + following queries look
> fine, they have the same structure as if I run the query manually. It's not
> that the query plan switches, it seems as though the same query plan is
> just > 200X slower than usual.

Are you able to reproduce the problem manually ?

With/without PREPARE ?
https://www.postgresql.org/docs/current/sql-prepare.html

--
Justin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message James Thompson 2020-05-04 19:12:06 Re: Please help! Query jumps from 1s -> 4m
Previous Message Michael Lewis 2020-05-04 17:11:41 Re: Duplicate WHERE condition changes performance and plan