Re: test / live environment, major performance difference
В списке pgsql-performance по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: test / live environment, major performance difference |
| Дата | |
| Msg-id | 8385.1181664586@sss.pgh.pa.us обсуждение |
| Ответ на | Re: test / live environment, major performance difference (Christo Du Preez <christo@mecola.com>) |
| Ответы |
Re: test / live environment, major performance difference
|
| Список | pgsql-performance |
Christo Du Preez <christo@mecola.com> writes:
> On my laptop the explain analyze looks like this:
> "Index Scan using fki_layertype_parentid on layertype (cost=0.00..8.27
> rows=1 width=109)"
> " Index Cond: (parentid = 300)"
OK ...
> and on the problem server:
> "Seq Scan on layertype (cost=0.00..20.39 rows=655 width=110)"
> " Filter: (parentid = 300)"
The server thinks that every row of the table matches the WHERE clause.
That being the case, it's making the right choice to use a seqscan.
The question is why is the rows estimate so far off? Have you ANALYZEd
the table lately?
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера