pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-performance@postgresql.org
Subject: Re: Query Performance question
Date: Mon, 14 Jul 2014 15:48:03 +0200
Message-ID: <lq0n2j$60o$1@ger.gmane.org> (raw)
In-Reply-To: <b5a078be76e74517b341a9b76a3c136c@CO2PR07MB601.namprd07.prod.outlook.com>
References: <1405292142269.59034@turner.com>
	<53C32B20.8010100@fuzzy.cz>
	<1405304448354.64039@turner.com>
	<lpvviu$en3$1@ger.gmane.org>
	<b5a078be76e74517b341a9b76a3c136c@CO2PR07MB601.namprd07.prod.outlook.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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 








-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (21+ messages)  latest in thread

Message-ID: <lq0n2j$60o$1@ger.gmane.org>
Permalink:  ../lq0n2j$60o$1@ger.gmane.org/
Also on:    postgresql.org/message-id/lq0n2j$60o$1@ger.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: Query Performance question
  In-Reply-To: <lq0n2j$60o$1@ger.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox