Re: Join over two tables of 50K records takes 2 hours

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Join over two tables of 50K records takes 2 hours
Дата
Msg-id CAOR=d=2zPgFH=sGNrqEe7OQp5PLAF2+SG5W3AS5ZRcom7S6p7w@mail.gmail.com
обсуждение исходный текст
Ответ на Join over two tables of 50K records takes 2 hours  (Svetlin Manavski <svetlin.manavski@gmail.com>)
Список pgsql-performance
It seems like your row estimate are way off, with the planner
expecting 1 and getting 3000 or so.  Have you tried cranking up
default stats target to say 1000, running analyze and seeing what
happens?

If that doesn't do it, try temporarily turning off nested loops:

set enable_nestloop = off;
explain analyze yourqueryhere;

В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Join over two tables of 50K records takes 2 hours
Следующее
От: CSS
Дата:
Сообщение: SSD options, small database, ZFS