Re: general peformance question

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Conny Thimren <conny(dot)thimren(at)servit(dot)se>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: general peformance question
Date: 2003-12-22 22:30:56
Message-ID: Pine.LNX.4.33.0312221527540.31107-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, 18 Dec 2003, Conny Thimren wrote:

> Hi,
> This a kind of newbie-question. I've been using Postgres for a long time in a low transction environment - and it is great.
>
> Now I've got an inquiry for using Postgresql in a heavy-load on-line system. This system must handle something like 20 questions per sec with a response time at 1/10 sec. Each question will result in approx 5-6 reads and a couple of updates.
> Anybody have a feeling if this is realistic on a Intelbased Linux server with Postgresql. Ofcourse I know that this is too little info for an exact answer but - as I said - maybe someone can give a hint if it's possible. Maybe someone with heavy-load can give an example of what is possible...

That really depends on how heavy each query is, so it's hard to say from
what little you've given us.

If you are doing simple banking style transactions, then you can easily
handle this load, if you are talking a simple shopping cart, ditto, if,
however, you are talking about queries that run 4 or 5 tables with
millions of rows againts each other, you're gonna have to test it
yourself.

With the autovacuum daemon running, I ran a test overnight of pgbench
(more for general purpose burn in than anything else)

pgbench -i -s 100
pgbench -c 50 -t 250000

that's 10 million transactions, and it took just over twelve hours to
complete at 220+ transactions per second.

so, for financials, you're likely to find it easy to meet your target.
But as the tables get bigger / more complex / more interconnected you'll
see a drop in performance.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2003-12-22 22:32:11 Re: postgresql performance on linux port
Previous Message Marc G. Fournier 2003-12-22 21:11:25 mnogosearch under 7.4 ...