Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > query very slow...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3126 of 3255
Post > Topic >>

query very slow but table very small

by ron.arts@[EMAIL PROTECTED] (Ron Arts) May 27, 2008 at 11:31 AM

Hi,

I have a table containing 8 rows. The records are around 2k max.
selects on this table take very long to complete:
This is not a table that had a lot of adds/deletes, and I
have run vacuum and analyze.

tium=# select count(*) from trunk;
  count
-------
      8
(1 row)

(Takes about 2 seconds)

The database is lightly loaded otherwise, but I don't understand
the explain output:

tium=# explain select count(*) from trunk;
                           QUERY PLAN
---------------------------------------------------------------
  Aggregate  (cost=65598.10..65598.11 rows=1 width=0)
    ->  Seq Scan on trunk  (cost=0.00..65598.08 rows=8 width=0)
(2 rows)

What does it mean that the cost figures are so high?

This is a standard run-of-the-mill server by the way with 1GB RAM,
I have shared buffers set to 12000.

Thanks,
Ron

-- 
NeoNova BV, The Netherlands
Professional internet and VoIP solutions

http://www.neonova.nl
  Kruislaan 419              1098 VA Amsterdam
info: 020-5628292       servicedesk: 020-5628292   fax: 020-5628291
KvK Amsterdam 34151241

The following disclaimer applies to this email:
http://www.neonova.nl/maildisclaimer

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 2 Posts in Topic:
query very slow but table very small
ron.arts@[EMAIL PROTECTED  2008-05-27 11:31:47 
Re: query very slow but table very small
andreas.kretschmer@[EMAIL  2008-05-27 12:16:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 9:15:58 CDT 2008.