Re: strange query plan with LIMIT

Поиск
Список
Период
Сортировка
От tv@fuzzy.cz
Тема Re: strange query plan with LIMIT
Дата
Msg-id 9f040b694b5b87c5ab1754b37e367e10.squirrel@sq.gransy.com
обсуждение исходный текст
Ответ на Re: strange query plan with LIMIT  (anthony.shipman@symstream.com)
Ответы Re: strange query plan with LIMIT
Список pgsql-performance
> If I had set the primary key to (diag_id, create_time) would simple
> queries on
> diag_id still work well i.e.
>     select * from tdiag where diag_id = 1234;

Yes. IIRC the performance penalty for using non-leading column of an index
is negligible. But why don't you try that on your own - just run an
explain and you'll get an immediate answer if that works.

regards
Tomas


В списке pgsql-performance по дате отправления:

Предыдущее
От: Robert Klemme
Дата:
Сообщение: Re: [GENERAL] [PERFORMANCE] expanding to SAN: which portion best to move
Следующее
От: "Anibal David Acosta"
Дата:
Сообщение: how much postgres can scale up?