I have a MySQL database that has over 9000 rows with 10 fields. It was imported from an Excel file so it’s all in one table.
When I run the query, which has already narrowed down the selection, I get 7000 rows back to my Codeigniter view page. The browser freezes for 30 seconds and asks me to kill the page because there has been no response. If I wait, I will see the result show up eventually. I was wondering if there are any ways to improve this?
Are you running your queries inside a loop of some sort?
Agree with pagination answers, use limits and offsets. If you run 10per page thats 700 queries. I would use codeigniter’s pagination lib as follows.
–