Loading about 7360 records into a datatable but it took 10 seconds on IE 11, under 4 on Chrome
Loading about 7360 records into a datatable but it took 10 seconds on IE 11, under 4 on Chrome
gh2m
Posts: 63Questions: 16Answers: 0
Can you share your experience of loading 20k in only couple of seconds? Following is my code example:
var dataSet = [ [ "Tiger Nixon", "System Architect", "Edinburgh", "5421", "2011/04/25", "$320,800" ], [ "Garrett Winters", "Accountant", "Tokyo", "8422", "2011/07/25", "$170,750" ], ...... ] $(document).ready(function() { $('#example').DataTable( { data: dataSet, columns: [ { title: "Name" }, { title: "Position" }, { title: "Office" }, { title: "Extn." }, { title: "Start date" }, { title: "Salary" } ] } ); } );How can I improve?
This discussion has been closed.
Answers
This section of the FAQ should help, it discusses various techniques to improve performance,
Cheers,
Colin
In theory there seems to be several ways. Do you have an example of it I can follow?
Here is a
deferRender
example:https://datatables.net/examples/ajax/defer_render.html
Here is the Server Side Processing docs that talk about the client/server protocol used. Here are server side processing examples-.
Kevin