Re: question about frequency of updates/reads - Mailing list pgsql-general

From Scott Marlowe
Subject Re: question about frequency of updates/reads
Date
Msg-id dcc563d10906232148s34a5abf3w6a45ae3faa214d9e@mail.gmail.com
Whole thread Raw
In response to question about frequency of updates/reads  (Andrew Smith <laconical@gmail.com>)
Responses Re: question about frequency of updates/reads
List pgsql-general
On Tue, Jun 23, 2009 at 10:12 PM, Andrew Smith<laconical@gmail.com> wrote:

> This temp table will probably contain up to 10000 records, each of
> which could be changing every second (data is coming from a real-time
> monitoring system).  On top of this, I've then got the ASP.NET app
> reading the updated data values every second or so (the operators want
> to see the data as soon as it changes).  I was going to do some
> performance testing to see how well it would work, but thought I'd ask
> the question here first: I know that the number of records isn't a
> problem, but how about the frequency of updates/reads?  Is 10000
> updates/reads a second considered a lot in the PostgreSQL world, or
> will it do it easily?

Maybe.  Rows that are updated often are NOT generally pgsql's strong
suit, but IF you're running 8.3 or above, and IF you have a low enough
fill factor that there's empty space for the updates and IF the fields
you are updating are not indexed and IF you have aggressive enough
vacuuming and IF you restrict your updates to JUST real updates (i.e.
update ... set a=1 where a<>1) and IF your IO subsystem has enough raw
horsepower, you can make this work.  But only benchmarking will tell
you if you can do it with your current hardware and setup.

pgsql-general by date:

Previous
From: Andrew Smith
Date:
Subject: question about frequency of updates/reads
Next
From: David Wilson
Date:
Subject: Re: question about frequency of updates/reads