From: Guillaume Smet <guillaume.smet@gmail.com>
To: Mindaugas <ml@kilimas.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Dealing with big tables
Date: Sun, 2 Dec 2007 12:55:34 +0100
Message-ID: <1d4e0c10712020355j133e0d31n653a531da1834c80@mail.gmail.com> (raw)
In-Reply-To: <E1Iym1h-0004Tg-VQ@garm.runbox.com>
References: <E1Iym1h-0004Tg-VQ@garm.runbox.com>
On Dec 2, 2007 11:26 AM, Mindaugas <ml@kilimas.com> wrote:
> I execute simple query "select * from bigtable where From='something'". Query returns like 1000 rows and takes 5++ seconds to complete. As far as I understand the query is slow because:
Can you post an EXPLAIN ANALYZE? Which version of PostgreSQL do you use?
--
Guillaume
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: guillaume.smet@gmail.com, ml@kilimas.com
Subject: Re: Dealing with big tables
In-Reply-To: <1d4e0c10712020355j133e0d31n653a531da1834c80@mail.gmail.com>
References: <E1Iym1h-0004Tg-VQ@garm.runbox.com> <1d4e0c10712020355j133e0d31n653a531da1834c80@mail.gmail.com>
* 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