Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains - Mailing list pgsql-general

From pinker
Subject Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains
Date
Msg-id 1474492717087-5922219.post@n3.nabble.com
Whole thread Raw
In response to Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-general
Jeff Janes wrote
> Try swapping the order of the columns in the exclude constraint.  You want
> the more selective criterion to appear first in the index/constraint.
> Presumably "key with =" is the most selective, especially if many of your
> periods are unbounded.

I would not be so sure with that:
http://use-the-index-luke.com/sql/myth-directory/most-selective-first




--
View this message in context:
http://postgresql.nabble.com/performance-problems-with-bulk-inserts-updates-on-tsrange-with-gist-based-exclude-constrains-tp5921498p5922219.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: PgSQL versions supported on ubuntu 16 and debian 8
Next
From: Jim Nasby
Date:
Subject: Re: overwrite column data select - Postgres 9.2