Re: [PERFORM] COUNT & Pagination

2004-01-13 Thread scott.marlowe
On Tue, 13 Jan 2004, David Shadovitz wrote: > > We avert the subsequent execution of count(*) by passing the > > value of count(*) as a query parameter through the link in page > > numbers. > > Mallah, and others who mentioned caching the record count: > > Yes, I will certainly do this. I can d

Re: [PERFORM] COUNT & Pagination

2004-01-13 Thread David Shadovitz
> We avert the subsequent execution of count(*) by passing the > value of count(*) as a query parameter through the link in page > numbers. Mallah, and others who mentioned caching the record count: Yes, I will certainly do this. I can detect whether the query's filter has been changed, or whet

Re: [PERFORM] COUNT & Pagination

2004-01-13 Thread mallah
> I understand that COUNT queries are expensive. So I'm looking for advice > on > displaying paginated query results. > > I display my query results like this: > > Displaying 1 to 50 of 2905. > 1-50 | 51-100 | 101-150 | etc. > > I do this by executing two queries. One is of the form: > > SE

Re: [PERFORM] freebsd 5.2 and max_connections

2004-01-13 Thread Richard Huxton
On Tuesday 13 January 2004 16:04, David Hill wrote: > Hello - > I am using postgresql to hold aliases, users, and relay_domains for postfix > and courier to do lookups from. I am not storing mail in sql. > > I need postgresql to have fast read performance, so i setup index's on the > tables. Also

[PERFORM] freebsd 5.2 and max_connections

2004-01-13 Thread David Hill
Hello - I am using postgresql to hold aliases, users, and relay_domains for postfix and courier to do lookups from. I am not storing mail in sql. I need postgresql to have fast read performance, so i setup index's on the tables. Also, the queries are basically "select blah from table where dom

Re: [PERFORM] failures on machines using jfs

2004-01-13 Thread Greg Spiegelberg
Hannu Krosing wrote: Greg Spiegelberg kirjutas E, 12.01.2004 kell 19:03: Hannu Krosing wrote: Spiegelberg, Greg kirjutas P, 11.01.2004 kell 18:21: It would seem we're experiencing somthing similiar with our scratch volume (JFS mounted with noatime). Which files/directories do you keep on "scr

Re: [PERFORM] failures on machines using jfs

2004-01-13 Thread Bill Moran
Hannu Krosing wrote: Greg Spiegelberg kirjutas E, 12.01.2004 kell 19:03: Hannu Krosing wrote: Spiegelberg, Greg kirjutas P, 11.01.2004 kell 18:21: It would seem we're experiencing somthing similiar with our scratch volume (JFS mounted with noatime). Which files/directories do you keep on "scr

Re: [PERFORM] failures on machines using jfs

2004-01-13 Thread Hannu Krosing
Greg Spiegelberg kirjutas E, 12.01.2004 kell 19:03: > Hannu Krosing wrote: > > Spiegelberg, Greg kirjutas P, 11.01.2004 kell 18:21: > > > >>It would seem we're experiencing somthing similiar with our scratch > >>volume (JFS mounted with noatime). > > > > > > Which files/directories do you keep o