| От | Merlin Moncure |
|---|---|
| Тема | Re: Multiple column indexes |
| Дата | |
| Msg-id | b42b73150701191153h36953a97v8e676e82b7897fe@mail.gmail.com обсуждение |
| Ответ на | Multiple column indexes (Garth Keesler <garthk@gdcjk.com>) |
| Ответы |
Re: Multiple column indexes
|
| Список | pgsql-general |
On 1/19/07, Garth Keesler <garthk@gdcjk.com> wrote: > I have a primary key made up of two varchar(128) columns, typically less > than 16 chars each. Concatenating the two columns would still be unique. > Would it make sense to concat the two columns, using a unique separator > like '~' and index on that single column or would that be more trouble > than the potential performance gains? yes. use a multiple key index. that is what they are for. or let the db do it for you: create table foo (a text, b text, primary key(a,b)); merlin
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера