Skip site navigation (1) Skip section navigation (2)

Re: Query only slow on first run

From: "Steinar H(dot) Gunderson" <sgunderson(at)bigfoot(dot)com>
To: cluster <skrald(at)amossen(dot)dk>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Query only slow on first run
Date: 2007-11-28 20:34:42
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On Wed, Nov 28, 2007 at 09:16:08PM +0100, cluster wrote:
> Hmm, actually I still don't understand why it takes 6400 ms to fetch the 
> rows. As far as I can see the index used is "covering" so that real row 
> lookups shouldn't be necessary.

The indexes don't contain visibility information, so Postgres has to look up
the row on disk to verify it isn't dead.

> Also, only the the random_numbers induces by questions with status = 1
> should be considered - and this part is a relatively small subset.

Again, you'll need to have a combined index if you want this to help you any.

/* Steinar */

In response to


pgsql-performance by date

Next:From: clusterDate: 2007-11-28 21:15:59
Subject: Re: Query only slow on first run
Previous:From: clusterDate: 2007-11-28 20:16:08
Subject: Re: Query only slow on first run

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group