Hello Everyone,
Well directly to the point, I am developing a fileListing web application (something like a webFileBrowser).
In the server side I am creating an .xml document with all the data that I need that later is "parsed" by an .xslt , so in the return of by ajax call I already have a "DOM" html table in a variable (and some other html elements, but this is irrelevant because at the end I have the table in a variable).
The next step is that I am replacing the existing table with the new one and at the end I am calling the dataTable creation
The problem comes here.. In case of a big amount of data this procedure could take a really big amount of time (e.x. for 10rows ~600ms for 1.500rows ~8.000ms, 15.000 ~95.000ms and some tests that I did with >35.000rows took more than half an hour in the cases that the browsers did not crash etc) The time periods mentioned above are only from the dataTable(); function.
The limitations:
1) I can not change the form of the "incomming" data (I could just get xml data as responce, but this would cause a lot of problems while at the moment I am saving a lot of data as attributes to the tr-td-table-div etcetera html elements in the xslt file)
2)I currently (maybe it will be possible in the future) can not parts from the data (for example the first 1000) mainly for performance reasons (everytime that I do a request there are a lot of checks that have to be made, so transactions for small amount of data are time-costly)
The theoretical solution: partially rendering from the responce to the DataTable (with scrolling)
PS: The user is informed that he has to wait, and this may be for a big amount of time, and there is no problem if this time is even few minutes in the worse case.. but ofcourse not half an hour
So, is this possible? That exists for ajax-server side requests as I have seen, is there any chance for modification that it will work with dom elements also?
Well directly to the point, I am developing a fileListing web application (something like a webFileBrowser).
In the server side I am creating an .xml document with all the data that I need that later is "parsed" by an .xslt , so in the return of by ajax call I already have a "DOM" html table in a variable (and some other html elements, but this is irrelevant because at the end I have the table in a variable).
The next step is that I am replacing the existing table with the new one and at the end I am calling the dataTable creation
$("#mySelector").dataTable({ options.... });
The problem comes here.. In case of a big amount of data this procedure could take a really big amount of time (e.x. for 10rows ~600ms for 1.500rows ~8.000ms, 15.000 ~95.000ms and some tests that I did with >35.000rows took more than half an hour in the cases that the browsers did not crash etc) The time periods mentioned above are only from the dataTable(); function.
The limitations:
1) I can not change the form of the "incomming" data (I could just get xml data as responce, but this would cause a lot of problems while at the moment I am saving a lot of data as attributes to the tr-td-table-div etcetera html elements in the xslt file)
2)I currently (maybe it will be possible in the future) can not parts from the data (for example the first 1000) mainly for performance reasons (everytime that I do a request there are a lot of checks that have to be made, so transactions for small amount of data are time-costly)
The theoretical solution: partially rendering from the responce to the DataTable (with scrolling)
PS: The user is informed that he has to wait, and this may be for a big amount of time, and there is no problem if this time is even few minutes in the worse case.. but ofcourse not half an hour
So, is this possible? That exists for ajax-server side requests as I have seen, is there any chance for modification that it will work with dom elements also?