| От | Tom Lane |
|---|---|
| Тема | Re: Joining views disables indexes? |
| Дата | |
| Msg-id | 29380.1130887724@sss.pgh.pa.us обсуждение |
| Ответ на | Joining views disables indexes? (Mitch Pirtle <mitch.pirtle@gmail.com>) |
| Список | pgsql-performance |
Mitch Pirtle <mitch.pirtle@gmail.com> writes:
> I have a client that is testing an internal data platform, and they
> were happy with PostgreSQL until they tried to join views - at that
> time they discovered PostgreSQL was not using the indexes, and the
> queries took 24 hours to execute as a result.
You'll need to provide some actual details if you want useful comments.
Let's see the table schemas, the view definitions, and the EXPLAIN plan
(I'll spare you a request for EXPLAIN ANALYZE given that it'd take 24
hours to get ;-) ... although some estimate of the number of rows
expected would be helpful). And I trust they remembered to ANALYZE the
underlying tables first? Also, which PG version exactly?
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера