Index to help ordering?

Поиск
Список
Период
Сортировка
От James David Smith
Тема Index to help ordering?
Дата
Msg-id CAMu32ABf1ErgVvou_RuUB89BVeF0O5oViU_Hfsq4MT3o1AhogA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Index to help ordering?  (Daniel Staal <DStaal@usa.net>)
Список pgsql-novice
Dear all,

I have a table of some 100m rows of data. There are 5 columns of data.
When I want to look at this data I typically want to sort it by ppid
(numeric) an then by time (timestamp). This simple select can often
take 15-20 seconds. Would adding an index to these two columns make it
quicker? What is the best way to achieve increased speed for this
common select query?

Thanks

James


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

Предыдущее
От: Sameer Kumar
Дата:
Сообщение: Re: archive_cleanup_command when is called?
Следующее
От: Daniel Staal
Дата:
Сообщение: Re: Index to help ordering?