Table taking lifetime to run
Table taking lifetime to run
Hello to you all.
I have dataTables 1.8.2, and I need to display rows from mysql, there are about 25000 rows, but the loading is taking to long, the browser wants to kill the webpage. I even have another table with 600 rows, that too is taking to much time. Is there any solution to make it faster? Or I have to use usually pagination with php?
Best regards.
I have dataTables 1.8.2, and I need to display rows from mysql, there are about 25000 rows, but the loading is taking to long, the browser wants to kill the webpage. I even have another table with 600 rows, that too is taking to much time. Is there any solution to make it faster? Or I have to use usually pagination with php?
Best regards.
This discussion has been closed.
Replies
You're using serverside: true?
I have ~390 columns and 50 rows, fetching data to table from ~18000 row DB takes about 3 seconds.
How you mean you are using serverside: true?
Two questions that I've found to be an issue before: is the table hidden (display: none) when you initialise it, and are you using IE? If so, that's the issue - IE does something very odd when parsing the DOM for hidden elements.
For 25'000 rows I'd suggest looking are using Ajax source loading with deferred rendering: http://datatables.net/release-datatables/examples/ajax/defer_render.html
Alternatively as btw says, you could consider server-side processing ( http://datatables.net/release-datatables/examples/data_sources/server_side.html ) which will deal with many millions of rows in a fraction of a second.
Allan
I'd be willing to bet that you are using 'static' events rather than live ones :-). Have a look at http://datatables.net/faqs#ss_events - I'd suggest using live events to cope with it.
Good to hear that the speed has improved!
Allan