Re: [GENERAL] Database Select Slow

2007-08-15 Thread carter ck
Hi, Thanks for the clarification. It helps to resolve the problem. Now, the page can be fully loaded within 2 seconds. Thanks. From: "Scott Marlowe" <[EMAIL PROTECTED]> To: "carter ck" <[EMAIL PROTECTED]> CC: pgsql-general@postgresql.org Subject: Re: [GE

Re: [GENERAL] Database Select Slow

2007-08-10 Thread Scott Marlowe
On 8/10/07, carter ck <[EMAIL PROTECTED]> wrote: > Hi all, > > I am facing a performance issue here. Whenever I do a count(*) on a table > that contains about 300K records, it takes few minutes to complete. Whereas > my other application which is counting > 500K records just take less than 10 > sec

Re: [GENERAL] Database Select Slow

2007-08-10 Thread Guido Neitzer
On 10.08.2007, at 06:58, .ep wrote: Hi, what if I need to do a count with a WHERE condition? E.g., SELECT count(*) from customers where cust_id = 'georgebush' and created_on > current_date - interval '1 week' ; Can I get the info about this from somewhere in the pg system tables as well? Queri

Re: [GENERAL] Database Select Slow

2007-08-10 Thread Bill Moran
In response to ".ep" <[EMAIL PROTECTED]>: > On Aug 10, 9:42 pm, [EMAIL PROTECTED] ("A. > Kretschmer") wrote: > > am Fri, dem 10.08.2007, um 17:46:11 +0800 mailte carter ck folgendes: > > > > > Hi all, > > > > > I am facing a performance issue here. Whenever I do a count(*) on a table > > > that c

Re: [GENERAL] Database Select Slow

2007-08-10 Thread .ep
On Aug 10, 9:42 pm, [EMAIL PROTECTED] ("A. Kretschmer") wrote: > am Fri, dem 10.08.2007, um 17:46:11 +0800 mailte carter ck folgendes: > > > Hi all, > > > I am facing a performance issue here. Whenever I do a count(*) on a table > > that contains about 300K records, it takes few minutes to complet

Re: [GENERAL] Database Select Slow

2007-08-10 Thread A. Kretschmer
am Fri, dem 10.08.2007, um 17:46:11 +0800 mailte carter ck folgendes: > Hi all, > > I am facing a performance issue here. Whenever I do a count(*) on a table > that contains about 300K records, it takes few minutes to complete. Whereas > my other application which is counting > 500K records jus

[GENERAL] Database Select Slow

2007-08-10 Thread carter ck
Hi all, I am facing a performance issue here. Whenever I do a count(*) on a table that contains about 300K records, it takes few minutes to complete. Whereas my other application which is counting > 500K records just take less than 10 seconds to complete. I have indexed all the essential col