Search Postgresql Archives

Re: SELECT count(*) Generating Lots of Write Activity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Logan Bowers" <logan@xxxxxxxxxx> writes:
> In my case, the "raw" data is on the order of hundreds of gigabytes and
> the increased write activity is a HUGE penalty.

And you think the extra activity from repeated clog tests would not be a
huge penalty?

AFAICS this would only be likely to be a win if you were sure that no
row would be visited more than once before you drop (or truncate) the
containing table.  Which leads me to wonder why you inserted the row
into the database in the first place, instead of doing the data
aggregation on the client side.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux