| От | Tom Lane |
|---|---|
| Тема | Re: PG planning randomly ? |
| Дата | |
| Msg-id | 3637.1204043502@sss.pgh.pa.us обсуждение |
| Ответ на | PG planning randomly ? ("Laurent Raufaste" <analogue@glop.org>) |
| Ответы |
Re: PG planning randomly ?
|
| Список | pgsql-performance |
"Laurent Raufaste" <analogue@glop.org> writes:
> I'm having some issues with this simple query:
> SELECT
> _comment.*,
> _article.title AS article_title,
> _article.reference AS article_reference
> FROM
> _comment
> INNER JOIN _article
> ON _article.id = _comment.parent_id
> WHERE
> _comment.path <@ '0.1.3557034'
> ORDER BY
> _comment.date_publishing DESC
> OFFSET 0
> LIMIT 5
> ;
> The varying information here is the ltree path "0.1.3557034"
What PG version is this?
If it's 8.2 or later then increasing the stats target for _comment.path
to 100 or more would likely help.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера