Re: Very specialised query

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Very specialised query
Дата
Msg-id 49CB4F35.EE98.0025.0@wicourts.gov
обсуждение исходный текст
Ответ на Very specialised query  (Matthew Wakeling <matthew@flymine.org>)
Список pgsql-performance
Matthew Wakeling <matthew@flymine.org> wrote:
> any other tips?

I would try adding an index on (objectid, start) and another on
(objectid, end) and see how that first query does.  Also, if id is a
unique identifier, I'd recommend a unique constraint or (better) a
primary key definition.  Check the system tables to see whether all
the existing indexes are actually being used -- if not, drop them.

-Kevin

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

Предыдущее
От: Matthew Wakeling
Дата:
Сообщение: Very specialised query
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Very specialised query