Re: index row size exceeds btree maximum, 2713 - Solutions?
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: index row size exceeds btree maximum, 2713 - Solutions? |
| Дата | |
| Msg-id | 17234.1121723334@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: index row size exceeds btree maximum, 2713 - Solutions? (Dan Armbrust <daniel.armbrust.list@gmail.com>) |
| Список | pgsql-general |
Dan Armbrust <daniel.armbrust.list@gmail.com> writes:
> All of my other limitations on changing things aside - given a query
> like this:
>
> Select * from conceptproperty where codingSchemeName='foo' AND
> property='anotherfoo' and propertyValue ILIKE 'valu%'
>
> What indexe(s) would be recommended?
I'd index on codingSchemeName and property and not worry so much about
propertyValue. I rather doubt that that part of the query is adding a
performance-critical amount of selectivity --- and even if you could fit
propertyValue into the index, you'd have to jump through hoops to get a
case-insensitive search on it when the other columns are case-sensitive.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера