Re: specific query (not all) on Pg8 MUCH slower than Pg7
В списке pgsql-performance по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: specific query (not all) on Pg8 MUCH slower than Pg7 |
| Дата | |
| Msg-id | 1160.1178635705@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | specific query (not all) on Pg8 MUCH slower than Pg7 (Susan Russo <russo@morgan.harvard.edu>) |
| Ответы |
Re: specific query (not all) on Pg8 MUCH slower than Pg7
|
| Список | pgsql-performance |
Susan Russo <russo@morgan.harvard.edu> writes:
> Despite numerous efforts, we're unable to solve a severe performance limitation between Pg 7.3.2
> and Pg 8.1.4.
> The query and 'explain analyze' plan below, runs in
> 26.20 msec on Pg 7.3.2, and
> 2463.968 ms on Pg 8.1.4,
You're not getting the indexscan optimization of the LIKE clause, which
is most likely due to having initdb'd the 8.1 installation in something
other than C locale. You can either redo the initdb in C locale (which
might be a good move to fix other inconsistencies from the 7.3 behavior
you're used to) or create a varchar_pattern_ops index on the column(s)
you're using LIKE with.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера