From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: shaiju.ck <shaiju.ck@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: Select * is very slow
Date: Mon, 08 Nov 2010 11:01:46 -0600
Message-ID: <4CD7D89A02000025000373D8@gw.wicourts.gov> (raw)
In-Reply-To: <1289197016462-3254568.post@n5.nabble.com>
References: <1289197016462-3254568.post@n5.nabble.com>
"shaiju.ck" <shaiju.ck@gmail.com> wrote:
> The table have 200 records now.
> Select * from employee takes 15 seconds to fetch the data!!!
> Which seems to be very slow.
> But when I say select id,name from empoyee it executes in 30ms.
> Same pefromance if I say select count(*) from emloyee.
You haven't given nearly enough information for anyone to diagnose
the issues with any certainty. Earlier responses have asked for
some particularly important information, and I would add a request
to see the output from `VACUUM VERBOSE employee;`. Beyond that, you
might want to review this page for checks you can make yourself, and
information which you could provide to allow people to give more
informed advice:
http://wiki.postgresql.org/wiki/SlowQueryQuestions
-Kevin
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: Kevin.Grittner@wicourts.gov, shaiju.ck@gmail.com
Subject: Re: Select * is very slow
In-Reply-To: <4CD7D89A02000025000373D8@gw.wicourts.gov>
References: <1289197016462-3254568.post@n5.nabble.com> <4CD7D89A02000025000373D8@gw.wicourts.gov>
* 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