pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Mark Stosberg <mark@summersault.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: explain analyze output for review (was: optimizing a geo_distance()...)
Date: Tue, 6 Feb 2007 09:45:08 -0600
Message-ID: <20070206154508.GA13065@wolff.to> (raw)
In-Reply-To: <eqa40j$1let$1@news.hub.org>
References: <eq2m5o$8cr$1@sea.gmane.org>
	<20070204051644.GA3754@wolff.to>
	<eq81l5$2na3$1@news.hub.org>
	<b42b73150702051215s6fe341e2re43872ab84abb185@mail.gmail.com>
	<eq8d0b$26cd$1@news.hub.org>
	<20070206054011.GA9604@wolff.to>
	<eqa40j$1let$1@news.hub.org>

On Tue, Feb 06, 2007 at 09:39:54 -0500,
  Mark Stosberg <mark@summersault.com> wrote:
> 
> I've been investigating partial indexes for the pets table. It has about
> 300,000 rows, but only about 10 are "active", and those are the ones we
> are care about. Queries are also frequently made on males vs females, dogs vs cats

It probably won't pay to make partial indexes on sex or species (at least
for the popular ones), as you aren't likely to save enough by eliminating only
half the cases to make up for maintaining another index. A partial index for
active rows probably does make sense.

> or specific ages, and those specific cases seem like possible candidates for partial indexes
> as well. I played with that approach some, but had trouble coming up with any thing that
> benchmarked faster.



view thread (5+ messages)

Message-ID: <20070206154508.GA13065@wolff.to>
Permalink:  ../20070206154508.GA13065@wolff.to/
Also on:    postgresql.org/message-id/20070206154508.GA13065@wolff.to

 · 

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: bruno@wolff.to, mark@summersault.com
  Subject: Re: explain analyze output for review (was: optimizing a geo_distance()...)
  In-Reply-To: <20070206154508.GA13065@wolff.to>

* 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