| От | Tom Lane |
|---|---|
| Тема | Re: Slow query (wrong index used maybe) |
| Дата | |
| Msg-id | 2631.1390835184@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Slow query (wrong index used maybe) (Stelian Iancu <stelian@iancu.ch>) |
| Ответы |
Re: Slow query (wrong index used maybe)
|
| Список | pgsql-performance |
Stelian Iancu <stelian@iancu.ch> writes:
> I have Postrgres 9.3 running on a Linux machine with 32GB RAM. I have a
> fairly large database (some tables with approx. 1 mil. records) and I
> have the following query:
> [ 13-way join joined to a 3-way join ]
Think you'll need to raise join_collapse_limit and from_collapse_limit
to get the best plan here. The planning time might hurt, though.
TBH that schema looks designed for inefficiency; you'd be better off
rethinking the design rather than hoping the planner is smart enough
to save you from it.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера