Re: How much expensive are row level statistics?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org, Carlos Benkendorf <carlosbenkendorf(at)yahoo(dot)com(dot)br>
Subject: Re: How much expensive are row level statistics?
Date: 2005-12-12 18:50:16
Message-ID: 20051212185016.GA60523@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches pgsql-performance

On Mon, Dec 12, 2005 at 01:33:27PM -0500, Merlin Moncure wrote:
> > The cost depends on your usage patterns. I did tests with one of
> > my applications and saw no significant performance difference for
> > simple selects, but a series of insert/update/delete operations ran
> > about 30% slower when block- and row-level statistics were enabled
> > versus when the statistics collector was disabled.
>
> That approximately confirms my results, except that the penalty may even
> be a little bit higher in the worst-case scenario. Row level stats hit
> the hardest if you are doing 1 row at a time operations over a
> persistent connection.

That's basically how the application I tested works: it receives
data from a stream and performs whatever insert/update/delete
statements are necessary to update the database for each chunk of
data. Repeat a few thousand times.

--
Michael Fuhr

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-12-12 18:58:52 Re: Different length lines in COPY CSV
Previous Message Bruno Wolff III 2005-12-12 18:34:45 Re: missing something obvious about intervals?

Browse pgsql-patches by date

  From Date Subject
Next Message Jim C. Nasby 2005-12-12 21:36:41 Re: Reduce NUMERIC size by 2 bytes, reduce max length to 508 digits
Previous Message Merlin Moncure 2005-12-12 18:33:27 Re: How much expensive are row level statistics?

Browse pgsql-performance by date

  From Date Subject
Next Message Will Glynn 2005-12-12 20:19:21 Re: Memory Leakage Problem
Previous Message Vivek Khera 2005-12-12 18:42:43 Re: opinion on disk speed