Re: more problems with count(*) on large table
От
Martijn van Oosterhout
Тема
Re: more problems with count(*) on large table
Дата
Msg-id
20071002074719.GB12469@svana.org
Ответ на
Re: more problems with count(*) on large table (Bill Moran)
Список
Дерево обсуждения
more problems with count(*) on large table Mike Charnoky <noky@nextbus.com>
Re: more problems with count(*) on large table "A. Kretschmer" <andreas.kretschmer@schollglas.com>
Re: more problems with count(*) on large table Alvaro Herrera <alvherre@commandprompt.com>
Re: more problems with count(*) on large table Andrew Sullivan <ajs@crankycanuck.ca>
Re: more problems with count(*) on large table "A. Kretschmer" <andreas.kretschmer@schollglas.com>
Re: more problems with count(*) on large table Gregory Stark <stark@enterprisedb.com>
Re: more problems with count(*) on large table Mike Charnoky <noky@nextbus.com>
Re: more problems with count(*) on large table Alban Hertroys <a.hertroys@magproductions.nl>
Re: more problems with count(*) on large table Gregory Stark <stark@enterprisedb.com>
Re: more problems with count(*) on large table Mike Charnoky <noky@nextbus.com>
Re: more problems with count(*) on large table Tomasz Ostrowski <tometzky@batory.org.pl>
Re: more problems with count(*) on large table Gregory Stark <stark@enterprisedb.com>
Re: more problems with count(*) on large table Mike Charnoky <noky@nextbus.com>
Re: more problems with count(*) on large table Alan Hodgson <ahodgson@simkin.ca>
Re: more problems with count(*) on large table Bill Moran <wmoran@potentialtech.com>
Re: more problems with count(*) on large table Martijn van Oosterhout <kleptog@svana.org>
Re: more problems with count(*) on large table Mike Charnoky <noky@nextbus.com>
Re: more problems with count(*) on large table Bill Moran <wmoran@potentialtech.com>
Re: more problems with count(*) on large table Alvaro Herrera <alvherre@commandprompt.com>
Re: more problems with count(*) on large table Gregory Stark <stark@enterprisedb.com>
Re: more problems with count(*) on large table Alban Hertroys <a.hertroys@magproductions.nl>
Re: more problems with count(*) on large table "Albe Laurenz" <laurenz.albe@wien.gv.at>
Re: more problems with count(*) on large table Alban Hertroys <a.hertroys@magproductions.nl>
Re: more problems with count(*) on large table Sean Davis <sdavis2@mail.nih.gov>
Re: more problems with count(*) on large table Mike Charnoky <noky@nextbus.com>
Re: more problems with count(*) on large table Bill Moran <wmoran@potentialtech.com>
Re: more problems with count(*) on large table "Scott Marlowe" <scott.marlowe@gmail.com>
On Mon, Oct 01, 2007 at 01:34:32PM -0400, Bill Moran wrote: > This sounds like a caching issue. My guess at what's happening is that > other operations are pushing this data out of the shared_buffers, so > when you run it, the system has to pull a bunch of tuples off the disk > to check them. If you run it again immediately, the tuples are still in > memory, and it runs very fast. You should check your ratio of system cache to shared_buffers. Pushing things out of shared buffers isn't bad if you've got a much bigger OS behind it. The cost of pulling something out of the OS cache is negligable compared to really going to disk. Have a nice day, -- Martijn van Oosterhout http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate.
В списке pgsql-general по дате отправления
От: Martijn van Oosterhout
Дата: