Re: Very slow queries - please help. - Mailing list pgsql-performance

From Claus Guttesen
Subject Re: Very slow queries - please help.
Date
Msg-id b41c75520511240523t3372661fw@mail.gmail.com
Whole thread Raw
In response to Very slow queries - please help.  ("Bealach-na Bo" <bealach_na_bo@hotmail.com>)
Responses Re: Very slow queries - please help.  ("Bealach-na Bo" <bealach_na_bo@hotmail.com>)
List pgsql-performance
> Typical query
> ------------
>
> SELECT n.name
> FROM node n
> WHERE n.name
> LIKE '56x%'
> AND n.type='H'
> AND n.usage='TEST'
> AND n.node_id
> NOT IN
> (select n.node_id
> FROM job_log j
> INNER JOIN node n
> ON j.node_id = n.node_id
> WHERE n.name
> LIKE '56x%'
> AND n.type='H'
> AND n.usage='TEST'
> AND j.job_name = 'COPY FILES'
> AND j.job_start >= '2005-11-14 00:00:00'
> AND (j.job_stop <= '2005-11-22 09:31:10' OR j.job_stop IS NULL))
> ORDER BY n.name

Do you have any indexes?

regards
Claus

pgsql-performance by date:

Previous
From: "Bealach-na Bo"
Date:
Subject: Very slow queries - please help.
Next
From: Sven Geisler
Date:
Subject: Re: High context switches occurring