I'm using HTML::Pager to divide up the output of a database request. Unfortunately, HTML::Pager uses the total number of rows of the request. If I use the offset and limit parameters in my Postgres query, I get the win of only grabbing the rows that I need. However, I lose because I don't know how many total rows there would be without a separate COUNT(*) query.
Any suggestions on the best way to get the total number of rows and the rows I need?
In reply to HTML::Pager - how many rows? by archon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |