| От | Kevin Grittner |
|---|---|
| Тема | Re: Subquery in a JOIN not getting restricted? |
| Дата | |
| Msg-id | 4EB80CAA0200002500042B3B@gw.wicourts.gov обсуждение |
| Ответ на | Re: Subquery in a JOIN not getting restricted? ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>) |
| Ответы |
Re: Subquery in a JOIN not getting restricted?
|
| Список | pgsql-performance |
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> wrote: > If I had made the scores table wider, it might have gone from the > user table to scores on the index. Bah. I just forgot to put an index on scores.user_id. With that index available it did what you were probably expecting -- seq scan on questions, nested loop index scan on users, nested loop index scan on scores. You weren't running you test with just a few rows in each table and expecting the same plan to be generated as for tables with a lot of rows, were you? -Kevin
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера