From: | Greg Smith <greg(at)2ndquadrant(dot)com> |
---|---|
To: | Dennis Gearon <gearond(at)sbcglobal(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: select count(*) status these days |
Date: | 2010-10-19 05:26:00 |
Message-ID: | 4CBD2BE8.6030105@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Dennis Gearon wrote:
> Is there any architectural way to speed it up? I'd actually like to run it every 2-60 seconds to update a counter on a page for the marketing guy, (which for once, is me :-
Could always maintain it with triggers. See
http://wiki.postgresql.org/wiki/Slow_Counting for a discussion of this
whole issue, with pointers to articles about alternate solutions.
--
Greg Smith, 2ndQuadrant US greg(at)2ndQuadrant(dot)com Baltimore, MD
PostgreSQL Training, Services and Support www.2ndQuadrant.us
Author, "PostgreSQL 9.0 High Performance" Pre-ordering at:
https://www.packtpub.com/postgresql-9-0-high-performance/book
From | Date | Subject | |
---|---|---|---|
Next Message | Ravi Katkar | 2010-10-19 05:43:32 | drop view with out cascading the dependents |
Previous Message | Tahir Tamba | 2010-10-19 05:15:50 | install PostgreSQL 9 .0.1 issue using linux binary package .bin |