Re: Huge Data - Mailing list pgsql-general

From Sezai YILMAZ
Subject Re: Huge Data
Date
Msg-id 4005387C.70309@pro-g.com.tr
Whole thread Raw
In response to Re: Huge Data  (Richard Huxton <dev@archonet.com>)
Responses Re: Huge Data  (Richard Huxton <dev@archonet.com>)
Re: Huge Data  (Shridhar Daithankar <shridhar_daithankar@persistent.co.in>)
List pgsql-general
Richard Huxton wrote:

>PG uses MVCC to manage concurrency. A downside of this is that to verify the
>exact number of rows in a table you have to visit them all.
>
>There's plenty on this in the archives, and probably the FAQ too.
>
>What are you using the count() for?
>
>
>

select logid, agentid, logbody from log where logid=3000000;

this query also returns after about 120 seconds. The table log has about
7 million records, and logid is the primary key of log table. What about
that? Why is it too slow?

-sezai


pgsql-general by date:

Previous
From: Sezai YILMAZ
Date:
Subject: Re: Huge Data
Next
From: Shridhar Daithankar
Date:
Subject: Re: Huge Data