From: | Will LaShell <will(at)lashell(dot)net> |
---|---|
To: | Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: for help! |
Date: | 2003-04-15 15:40:05 |
Message-ID: | 1050421206.25390.16.camel@lyric.ofsloans.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
<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
>
From | Date | Subject | |
---|---|---|---|
Next Message | Robert John Shepherd | 2003-04-15 15:49:18 | Do Views offer any performance advantage? |
Previous Message | Bruce Momjian | 2003-04-15 14:23:30 | Re: [PERFORM] Yet Another (Simple) Case of Index not used |