Re: Sub-query too slow

Поиск
Список
Период
Сортировка
От Randall Skelton
Тема Re: Sub-query too slow
Дата
Msg-id A88948A6-8377-11D8-A5A5-000393C92230@brutus.uwaterloo.ca
обсуждение исходный текст
Ответ на Re: Sub-query too slow  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
Thanks, that is much better.

On 31 Mar 2004, at 19:14, Martijn van Oosterhout wrote:

> On Wed, Mar 31, 2004 at 05:41:03PM -0500, Randall Skelton wrote:
>> Can someone please explain how I can make this sub-query faster?  In
>> the case below, 'test' is a temporary table but I have tried with test
>> being a full, indexed, and 'vacuum analysed' table and it still takes
>> more than 130 seconds.  Note that 'test' has very few rows but
>> 'cal_quat_1' has many rows.
>
> Have you tried just using a join? Like:
>
> explain analyze select value from cal_quat_1, test where timestamp = t
> order by t;
>
> Also, an index on cal_quat_1.timestamp might be good too...


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Sub-query too slow
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: [pgsql-advocacy] Best open source db poll currently