Re: Posible planner improvement?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Posible planner improvement?
Дата
Msg-id 4833FDE5.8090603@archonet.com
обсуждение исходный текст
Ответ на Posible planner improvement?  (Albert Cervera Areny <albert@sedifa.com>)
Ответы Re: Posible planner improvement?
Список pgsql-performance
Albert Cervera Areny wrote:
> I've got a query similar to this:
>
> select * from t1, t2 where t1.id > 158507 and t1.id = t2.id;
>
> That took > 84 minutes (the query was a bit longer but this is the part that
> made the difference) after a little change the query took ~1 second:
>
> select * from t1, t2 where t1.id > 158507 and t2.id > 158507 and t1.id =
> t2.id;

Try posting EXPLAIN ANALYSE SELECT ... for both of those queries and
we'll see why it's better at the second one.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Frank Dekervel
Дата:
Сообщение: Re: "append" takes a lot of time in a query
Следующее
От: Albert Cervera Areny
Дата:
Сообщение: Re: Posible planner improvement?