in reply to Faster way of retrieving the number of recs in mysql
If you are only interested in the count of rows or rows that would match, then perhaps you should use "select count(*) from table", and then use selectrow_array() to fetch the single value returned.
Explicitly asking for count(*) may allow some DBs to execute the request a lot faster than retrieving all that muck just to count.
|
|---|