Re: Slow Query

Поиск
Список
Период
Сортировка
От robbyc
Тема Re: Slow Query
Дата
Msg-id CA+emuvJLs3Sy8hDweEwj0RYpodXQ+YvO79LLTrny=wDs50QPmA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Slow Query  (林士博 <lin@repica.co.jp>)
Ответы Re: Slow Query  (林士博 <lin@repica.co.jp>)
Список pgsql-performance
Hi,

Doing this returns 0 records

On Thu, Aug 13, 2015 at 7:22 PM, 林士博 [via PostgreSQL] <[hidden email]> wrote:
In the 'not exists' cluster, you do not have to search table "Vacancy as v" again.
I think it would be faster to use the outer Vacancy table as below.
In your case, that do the same work.

NOT EXISTS (
        SELECT 1
        FROM "CategoryOption_TableRow" "ct126" 
        WHERE "Vacancy"."Template"
          AND "ct126"."CategoryOptionID" IN (34024,35254,35255,35256)
          AND "ct126"."Category_TableID" = 126
          AND "ct126"."RowID" = "Vacancy"."ID"
          )



If you reply to this email, your message will be added to the discussion below:
http://postgresql.nabble.com/Slow-Query-tp5861835p5862008.html
To unsubscribe from Slow Query, click here.
NAML



--
Regards

Robert Campbell
+61412062971
[hidden email]


View this message in context: Re: Slow Query
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.

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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: Strange query stalls on replica in 9.3.9
Следующее
От: 林士博
Дата:
Сообщение: Re: Slow Query