Re: optimisation for a table with frequently used query

Поиск
Список
Период
Сортировка
От PFC
Тема Re: optimisation for a table with frequently used query
Дата
Msg-id op.ts1x39bmcigqcu@apollo13
обсуждение исходный текст
Ответ на optimisation for a table with frequently used query  (danmcb <danielmcbrearty@gmail.com>)
Ответы Re: optimisation for a table with frequently used query  (danmcb <danielmcbrearty@gmail.com>)
Re: optimisation for a table with frequently used query  (Lew <lew@nospam.lewscanon.com>)
Список pgsql-general

> SELECT * from my_table where id_1 = x and id_2 = y;
>
> Neither id_1 or id_2 or the combination of them is unique. I expect
> this table to become large over time.

Create an index on (id_1, id_2), or (id_2,id_1).

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

Предыдущее
От: "Greg Quinn"
Дата:
Сообщение: Re: createdb.exe prompting for password on Vista
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: createdb.exe prompting for password on Vista