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

From: pinker <pinker(at)onet(dot)eu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains
Date: 2016-09-21 21:18:37
Message-ID: 1474492717087-5922219.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim Nasby 2016-09-21 22:02:13 Re: overwrite column data select - Postgres 9.2
Previous Message Alvaro Herrera 2016-09-21 20:27:08 Re: PgSQL versions supported on ubuntu 16 and debian 8