Re: [GENERAL] Using window functions to get the unpaginated count for paginated queries

2012-11-14 Thread Clemens Park
Thanks for the reply everyone. In my case, it looks like there is no real drawback then, since what used to happen is: SELECT a,b,c FROM table WHERE clauses OFFSET x LIMIT y; followed by: SELECT COUNT(*) FROM ( SELECT a,b,c FROM table WHERE clauses ); (notice the lack of OFFSET and LIMIT)

Re: [GENERAL] Using window functions to get the unpaginated count for paginated queries

2012-11-14 Thread Albe Laurenz
Clemens Park wrote: > Recently, during a performance improvement sweep for an application at my company, one of the hotspots > that was discovered was pagination. > > In order to display the correct pagination links on the page, the pagination library we used (most > pagination libraries for that

[GENERAL] Using window functions to get the unpaginated count for paginated queries

2012-11-13 Thread Clemens Park
Hi all, Recently, during a performance improvement sweep for an application at my company, one of the hotspots that was discovered was pagination. In order to display the correct pagination links on the page, the pagination library we used (most pagination libraries for that matter) ran the query