Re: [PERFORM] More speed counting rows

2009-07-27 Thread Developer
> How "up to date" do the counts need to be? If the count takes 4 > seconds, can you run it every minute and store the counts in a table for > retrieval by the HTTP requests? Now, I am storing integer value for filter in memory with timeout, but in busy server, system sure crash without syste

Re: [PERFORM] More speed counting rows

2009-07-27 Thread David Wilson
On Mon, Jul 27, 2009 at 5:06 AM, Developer wrote: > Hello, > > I am trying to optimize the count of files when I am using filters > (select by some row/s parameter/s) > My question is: > Any method for indirect count like ordered indexes + quadratic count? > Any module? > Any suggestion? If all yo

Re: [PERFORM] More speed counting rows

2009-07-27 Thread Chris Ernst
Developer wrote: Hello, I am trying to optimize the count of files when I am using filters (select by some row/s parameter/s) In this case I think that postgresql really count all files. Resulting in unacceptable times of 4 seconds in http server response. Triggers+store in this case do not see

Re: [PERFORM] More speed counting rows

2009-07-27 Thread Scott Marlowe
On Mon, Jul 27, 2009 at 3:06 AM, Developer wrote: > Hello, > > I am trying to optimize the count of files when I am using filters > (select by some row/s parameter/s) > > In this case I think that postgresql really count all files. > Resulting in unacceptable times of 4 seconds in http server respo

[PERFORM] More speed counting rows

2009-07-27 Thread Developer
Hello, I am trying to optimize the count of files when I am using filters (select by some row/s parameter/s) In this case I think that postgresql really count all files. Resulting in unacceptable times of 4 seconds in http server response. Triggers+store in this case do not see very acceptable, b