I’m using http://datatables.net/examples/ for easy control table. I’m generating table with more than 30,000 records from a MySQL table, and loading is very slow. I want to cache this table and think that everything will go faster. I used ob_get_contents() but cache file size was 26MB. How can I create cache file to make everything go faster?
I’m using http://datatables.net/examples/ for easy control table. I’m generating table with more than 30,000
Share
If the output buffer size is 26MB then the problem is that it’s just taking a long time for your browser to download the page after the server generates it. You should either limit the number of rows that are returned, or use a pagination system.
For pagination, I’d do something like this:
Have a URL like:
http://website.com/script.php?start=3000and then do something like
You’d then want to print out a URL on the page that links to the next page: