pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: twoflower <standa.kurik@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: Re: Query > 1000× slowdown after adding datetime comparison
Date: Tue, 1 Sep 2015 02:51:50 -0700 (MST)
Message-ID: <1441101110741-5864173.post@n5.nabble.com> (raw )
In-Reply-To: <CACudzGhZi_LKCat-bhSBWh=gx+mW=sverz=KDzCYwW6W6bTdjw@mail.gmail.com >
References: <55E47E97.1090202@2ndquadrant.com >
<1441047830983-5864075.post@n5.nabble.com >
<1441048763332-5864080.post@n5.nabble.com >
<CAKFQuwbUZLWuhoaAF7mWdmRr-6LG9NdMfsyPasXo1ZY82YVRzA@mail.gmail.com >
<1441050416677-5864088.post@n5.nabble.com >
<CAFcOn2-u8QE-0vwkUuEQ7b1m9+YfH=vjLAaJrhAh=zU4n9Hu1w@mail.gmail.com >
<1441053041230-5864101.post@n5.nabble.com >
<CAFcOn2_1tknJ95JceZY1ikP1OURwgwuRFSQX21SJTLFF+ZzdRA@mail.gmail.com >
<1441094025534-5864164.post@n5.nabble.com >
<CACudzGhZi_LKCat-bhSBWh=gx+mW=sverz=KDzCYwW6W6bTdjw@mail.gmail.com >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
林士博 wrote
> 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.
I agree that might help. But I would still like to understand what's the
reason for difference between the second and the third query. Both contain a
simple <column> = <constant> expression, yet one finishes immediately and
one runs for 41 minutes.
--
View this message in context: http://postgresql.nabble.com/Query-1-000-000-slowdown-after-adding-datetime-comparison-tp5864045p586...
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
view thread (15+ messages) latest in thread
Message-ID: <1441101110741-5864173.post@n5.nabble.com>
Permalink: ../1441101110741-5864173.post@n5.nabble.com/
Also on: postgresql.org/message-id/1441101110741-5864173.post@n5.nabble.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: standa.kurik@gmail.com
Subject: Re: Re: Query > 1000× slowdown after adding datetime comparison
In-Reply-To: <1441101110741-5864173.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox