Table taking long time to update
Table taking long time to update
saurabhjain07
Posts: 3Questions: 1Answers: 0
I am getting the data from Mongo DB of 12000 rows and displaying on my frontend. The mongo query works fast by loading the data in table takes time say half to 1 minute.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
This is the html i am using to display and loop through the data
Does this have anything to do with Datatables?
Kevin
Looping and adding rows will be slow. This page of the FAQ offers some suggestions.
C
I am using the datatable like below.
$(document).ready(function() {
$('#example').DataTable( {
"orderClasses": false,
language: {"sLengthMenu": "Show : MENU Export as :" },
dom: 'lBfrtip',
buttons: [
'csv', 'excel',
],
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
} );