Re: High update activity, PostgreSQL vs BigDBMS

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Adam Rich" <adam(dot)r(at)sbcglobal(dot)net>
Cc: "'Craig A(dot) James'" <cjames(at)modgraph-usa(dot)com>, "'Guy Rouillier'" <guyr-ml1(at)burntmail(dot)com>, "'PostgreSQL Performance'" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: High update activity, PostgreSQL vs BigDBMS
Date: 2007-01-08 02:47:52
Message-ID: 19873.1168224472@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Adam Rich" <adam(dot)r(at)sbcglobal(dot)net> writes:
> I'm using 8.2 and using order by & limit is still faster than MAX()
> even though MAX() now seems to rewrite to an almost identical plan
> internally.

Care to quantify that? AFAICT any difference is within measurement
noise, at least for the case of separately-issued SQL commands.

> Count(*) still seems to use a full table scan rather than an index scan.

Yup. Don't hold your breath for something different. Postgres has made
design choices that make certain cases fast and others slow, and
count(*) is one case that has come out on the short end of the stick.
If that's your most important measure of performance, then indeed you
should select a different database that's made different tradeoffs.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Joshua D. Drake 2007-01-08 03:09:59 Re: High update activity, PostgreSQL vs BigDBMS
Previous Message Adam Rich 2007-01-08 02:26:29 Re: High update activity, PostgreSQL vs BigDBMS