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

Поиск
Список
Период
Сортировка
От pinker
Тема Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains
Дата
Msg-id 1474492717087-5922219.post@n3.nabble.com
обсуждение исходный текст
Ответ на Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains  (Jeff Janes <jeff.janes@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: PgSQL versions supported on ubuntu 16 and debian 8
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: overwrite column data select - Postgres 9.2