>>
>> > Would a rule be that
>> > if the first attribute of an index is unique, then additional
>> > attributes are basically useless?
>>
>> For PostgreSQL this is currently true, since indexes are
currently not
>> used for order by. If you have a unique first column in an index,
>> then all following columns could only be used for sorting,
>> not for faster access (access actually gets worse).
>
>Sorry, don't follow this logic. He is not restricting on the first
>field of the index, so the index is not used.
Ooops, I did not look at that, I just took the sentence standalone,
and under the presumption that the first field of the index is in the where
restriction.
Andreas
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера