Re: Query Performance question

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Query Performance question
Date: 2014-07-14 13:48:03
Message-ID: lq0n2j$60o$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Magers, James, 14.07.2014 15:18:
> Thank you. I executed the query this morning after disabling the scan types.
> I am including links to explain.depesz output for each of the three variations that I executed.
>
> indexscan and bitmapscan off: http://explain.depesz.com/s/sIx
> seqscan and bitmapscan off: http://explain.depesz.com/s/GfM
> bitmapscan off: http://explain.depesz.com/s/3wna
>

So the original query (using an "Index Scan" + "Bitmap Index Scan") is indeed the most efficient one: 4ms vs. 39ms vs. 64ms

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Magers, James 2014-07-14 14:00:42 Re: Query Performance question
Previous Message Magers, James 2014-07-14 13:18:12 Re: Query Performance question