Re: count(*) optimization

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: "Nikola Ivacic" <nikola(at)rs-pi(dot)com>, "Ian Harding" <ianh(at)tpchd(dot)org>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: count(*) optimization
Date: 2003-01-08 17:44:19
Message-ID: web-2307493@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Nikola,

> I am not sure pgAdmin uses count(*) and I didn't have time to check
> phpPgAdmin also, I presumed it from similarly slow response I get in
> psql

Well, pgAdmin and phpPgAdmin have their own mailing lists. I'd suggest
posting there. Ideally, these programs should have an option that
lets you use the Analyze stats instead of a real count if you want
speed over accuracy. If nobody requests it, though, neither
development team is likely to consider it.

Of course, it's also possible that these interfaces are slow for lots
of other reasons. For example, I've found pgAdminII to be sluggish on
a large, busy network because MS-ODBC is quite vulnerable to traffic
conflicts. And phpPgAdmin, at least several versions ago, had a
tendency to issue a seperate query for each single bit of information,
mySQL-style (they may have fixed this, though).

-Josh Berkus

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2003-01-08 17:53:54 Re: [SQL] [PERFORM] 7.3.1 index use / performance
Previous Message Zengfa Gao 2003-01-08 17:43:31 PgSQL 7.3: /opt/pgsql/bin/postgres: Execute permission denied.