[eluser]zimco[/eluser]
I was trying to create a quick stats view page that displayed some stats about the number of entries in a couple of tables in my database, but since one table has 38,000 rows and the other table has 743,000 rows it took 65.1814 seconds to do the row count and then render the quick stats page; making it not so quick. I used the Result Helper Function $query->num_rows() mentioned on the User Guide>Database Library>Query Results page in my model to generate the row count for each table.
Am i using this function in a way it was not intended to be used and that why it's so slow? Would i be better off just using a manual query using SELECT Count(*) FROM mytable? Or is it always just going to be this slow due to the size of the tables and i should not be trying to display it in the first place?
Otherwise, does anybody have any suggestions on how i could get the information faster?