From: | Mladen Gogala <mgogala(at)vmsinfo(dot)com> |
---|---|
To: | Neil Whelchel <neil(dot)whelchel(at)gmail(dot)com> |
Cc: | "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: Slow count(*) again... |
Date: | 2010-10-11 20:58:37 |
Message-ID: | 4CB37A7D.90502@vmsinfo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
Neil Whelchel wrote:
>
>
> That is why I suggested an estimate(*) that works like (a faster) count(*)
> except that it may be off a bit. I think that is what he was talking about
> when he wrote this.
>
>
The main problem with "select count(*)" is that it gets seriously
mis-used. Using "select count(*)" to establish existence is bad for
performance and for code readability.
--
Mladen Gogala
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251
http://www.vmsinfo.com
The Leader in Integrated Media Intelligence Solutions
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2010-10-11 21:40:06 | Re: Issues with two-server Synch Rep |
Previous Message | Robert Haas | 2010-10-11 20:07:59 | Re: Issues with two-server Synch Rep |
From | Date | Subject | |
---|---|---|---|
Next Message | Samuel Gendler | 2010-10-11 22:03:38 | Re: Slow count(*) again... |
Previous Message | Neil Whelchel | 2010-10-11 19:54:57 | Re: Slow count(*) again... |