DataTables + php + mysql ... slow
DataTables + php + mysql ... slow
Hi,
I'm new here and for now I apprecialte a lot the feature of DataTables.
I have put a test file with the server side example with a mysql database and it's kinda slow when I change row pagination, or when I do a sort colomn.
I understand that each time it goes on the database and read the data and it's why it's take a bit longer.
I would like to know if it will be a good Idea to read the data from the database and push it n XML directly so no need to
reload the data each time. the update could be made directly in both mysql database and the Xml.
I just want to make it fast, and for security reason ... I just don't know if it secure to do this.
also it's there an example of updating the data to php to mysql. I only have the read example...
thanks
I'm new here and for now I apprecialte a lot the feature of DataTables.
I have put a test file with the server side example with a mysql database and it's kinda slow when I change row pagination, or when I do a sort colomn.
I understand that each time it goes on the database and read the data and it's why it's take a bit longer.
I would like to know if it will be a good Idea to read the data from the database and push it n XML directly so no need to
reload the data each time. the update could be made directly in both mysql database and the Xml.
I just want to make it fast, and for security reason ... I just don't know if it secure to do this.
also it's there an example of updating the data to php to mysql. I only have the read example...
thanks
This discussion has been closed.
Replies
Allan
there's only 57 row in the database, here the link for testing http://debugger.ca/mc/mcadmin/
when I change page it's kinda slow, I tought it would be faster than that since it's only 57 row... or it's the server speed, even if I sort by colomn it's slow and a message apear telling that i must wait the data.
I use ajax, the same example that on the exemple page.
thanks for helping.
http://www.datatables.net/release-datatables/examples/data_sources/server_side.html
Allan