From: Will LaShell <will@lashell.net>
To: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
Cc: pgsql-performance@postgresql.org
Subject: Re: for help!
Date: 15 Apr 2003 08:40:05 -0700
Message-ID: <1050421206.25390.16.camel@lyric.ofsloans.com> (raw)
In-Reply-To: <200304151524.11721.shridhar_daithankar@nospam.persistent.co.in>
References: <000901c30333$a52b7550$3c10a9c0@jinrong.sis.sh.cn>
<200304151524.11721.shridhar_daithankar@nospam.persistent.co.in>
<SNIP>
> > Under this condition, I want get some useful suggestion from you. How to
> > optimize the database? How to improve the Count(*)? Because we want to
> > get the number of records in the recordset we got.
>
> If you are using say libpq, you don't need to issue a select count(*) where
> foo and select where foo, to obtain record count and the records themselves.
> I believe every other interface stemming from libpq should provide any such
> hooks as well. Never used any other myself (barring ecpg)
The python interfaces most definitely do. Doing the count is quite
unnecessary just as Shridhar points out.
> HTH
>
> Shridhar
>
Attachments:
signature.asc (application/pgp-signature, 188B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: will@lashell.net, shridhar_daithankar@persistent.co.in
Subject: Re: for help!
In-Reply-To: <1050421206.25390.16.camel@lyric.ofsloans.com>
References: <000901c30333$a52b7550$3c10a9c0@jinrong.sis.sh.cn> <200304151524.11721.shridhar_daithankar@nospam.persistent.co.in> <1050421206.25390.16.camel@lyric.ofsloans.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox