Re: index

Поиск
Список
Период
Сортировка
От David Wilson
Тема Re: index
Дата
Msg-id e7f9235d0901132216w39bd2083ld56a03a70f1035c1@mail.gmail.com
обсуждение исходный текст
Ответ на index  ("Maksim Sosnovskiy" <msosno01@gmail.com>)
Список pgsql-performance
On Wed, Jan 14, 2009 at 12:53 AM, Maksim Sosnovskiy <msosno01@gmail.com> wrote:
Will it be more efficient to also add index on IP
> Address to speedup lookups by IP?

Most likely, especially if the IP address is not the first column in
your primary key index.

Have you done an explain analyze of your ip lookup query? If not, do
so; that can help. Then try creating the index and explain analyze the
query again to see what happens.

Knowing your existing schema/indices and such would let us do more
than guess- and not knowing the plan your current query is using makes
it difficult to know if there's a better one using a to-be-created
index.
--
- David T. Wilson
david.t.wilson@gmail.com

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

Предыдущее
От: "Maksim Sosnovskiy"
Дата:
Сообщение: index
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Slow insert performace, 8.3 Wal related?