Re: Very long running query

Поиск
Список
Период
Сортировка
От Joel Burton
Тема Re: Very long running query
Дата
Msg-id Pine.LNX.4.21.0104101138220.21912-100000@olympus.scw.org
обсуждение исходный текст
Ответ на Very long running query  (elwood@agouros.de (Konstantinos Agouros))
Ответы Re: Very long running query  (Konstantinos Agouros <elwood@agouros.de>)
Список pgsql-general
On 10 Apr 2001, Konstantinos Agouros wrote:

> Hi,
>
> I have a query running for 97hours now and I am wondering if this can be made
> any faster.
> The Query is:
> insert into dailyreport select timestamp(date '1-8-2001'),a.category,'Observed',sum(b.count) as count from
websensebycata, netscapereduce b where a.url = b.url and a.action='Observed' and a.datum='1-8-2001' and
b.datum='1-8-2001'and not exists (select url from urlcounts where urlcounts.url=b.url) group by a.category; 
>
> The tables websensebycat and netscapereduce do have indices on it.
> Netscapereduce has 60020 entries and websensebycat has around 6000 entries.
> Urlcounts has 55 entries. The whole thing is running postgres 7.1RC2.
> Anybody has a tip to accelerate this. The whole thing is running on a E250 with
> 64Bit Solaris7.

what does explain command show about your query?

--
Joel Burton   <jburton@scw.org>
Director of Information Systems, Support Center of Washington


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

Предыдущее
От: Steve Wampler
Дата:
Сообщение: pg_dump dying (and VACUUM ANALYZE woes)...
Следующее
От: Peter Mount
Дата:
Сообщение: Re: JDBC and Perl compiling problems w/ postgresql-7.1rc4