Re: [PERFORM] Re: Query > 1000× slowdown after adding datetime comparison - Mailing list pgsql-performance

From 林士博
Subject Re: [PERFORM] Re: Query > 1000× slowdown after adding datetime comparison
Date
Msg-id CACudzGhZi_LKCat-bhSBWh=gx+mW=sverz=KDzCYwW6W6bTdjw@mail.gmail.com
Whole thread Raw
In response to Re: Re: Query > 1000× slowdown after adding datetime comparison  (twoflower <standa.kurik@gmail.com>)
Responses Re: Re: Query > 1000× slowdown after adding datetime comparison
List pgsql-performance
I think you should try putting the precomputed boolean temp_eval column 
to "EXTERNAL_TRANSLATION" r table.

And if possible, try creating a conditional index on id where temp_eval is true,
on "EXTERNAL_TRANSLATION" r table.

So that, only check this index can get the top 1000 records.

pgsql-performance by date:

Previous
From: twoflower
Date:
Subject: Re: Re: Query > 1000× slowdown after adding datetime comparison
Next
From: twoflower
Date:
Subject: Re: Re: Query > 1000× slowdown after adding datetime comparison