pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pierre C <lists@peufeu.com>
To: pgsql-performance@postgresql.org, "shaiju.ck" <shaiju.ck@gmail.com>
Subject: Re: Select * is very slow
Date: Mon, 08 Nov 2010 19:41:53 +0100
Message-ID: <op.vlu7j3h2eorkce@apollo13> (raw)
In-Reply-To: <1289197016462-3254568.post@n5.nabble.com>
References: <1289197016462-3254568.post@n5.nabble.com>


> 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.

30 ms is also amazingly slow for so few records and so little data.

- please provide results of "EXPLAIN ANALYZE SELECT id FROM table"
- huge bloat (table never vacuumed ?) => VACUUM VERBOSE
- bad network cable, network interface reverting to 10 Mbps, badly  
configured network, etc ? (test it and test ping to server, throughput,  
etc)
- server overloaded (swapping, etc) ? (vmstat, iostat, top, etc)



view thread (9+ messages)

Message-ID: <op.vlu7j3h2eorkce@apollo13>
Permalink:  ../op.vlu7j3h2eorkce@apollo13/
Also on:    postgresql.org/message-id/op.vlu7j3h2eorkce@apollo13

 · 

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: lists@peufeu.com, shaiju.ck@gmail.com
  Subject: Re: Select * is very slow
  In-Reply-To: <op.vlu7j3h2eorkce@apollo13>

* 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