how to reduce processing time in datatables?
how to reduce processing time in datatables?
Periyasamy25
Posts: 13Questions: 0Answers: 0
i am using datatables in my php ajax coding.i am using search to display datas.To display less than 1000 datas datatables takes fraction of seconds.But more than 5000 datas it takes more than a minute.So how to reduce this display time in datatables for more than 1000000 datas.
My datatables coding is
$('#example').dataTable(
{
"bProcessing": true,
"bJQueryUI": true,
"oLanguage": {
"sSearch": ' Search Datas:',
"sLengthMenu": "Display _MENU_ profiles",
"sInfo": "Showing _START_ to _END_ of _TOTAL_ profiles",
"sInfoEmpty": "Showing 0 to 0 of _TOTAL_ profiles",
"sInfoFiltered": "(filtered from _MAX_ total profiles)",
"sZeroRecords": "No profiles available in table",
},
"aLengthMenu": [[10, 25, 50, 100, 200, 300], [10, 25, 50, 100, 200, 300]],
"sDom": 'lf rr pi <"toolbar">rt pi',
"fnDrawCallback": function () {
start=this.fnPagingInfo().iStart+1;
end=this.fnPagingInfo().iEnd;
},
});
My datatables coding is
$('#example').dataTable(
{
"bProcessing": true,
"bJQueryUI": true,
"oLanguage": {
"sSearch": ' Search Datas:',
"sLengthMenu": "Display _MENU_ profiles",
"sInfo": "Showing _START_ to _END_ of _TOTAL_ profiles",
"sInfoEmpty": "Showing 0 to 0 of _TOTAL_ profiles",
"sInfoFiltered": "(filtered from _MAX_ total profiles)",
"sZeroRecords": "No profiles available in table",
},
"aLengthMenu": [[10, 25, 50, 100, 200, 300], [10, 25, 50, 100, 200, 300]],
"sDom": 'lf rr pi <"toolbar">rt pi',
"fnDrawCallback": function () {
start=this.fnPagingInfo().iStart+1;
end=this.fnPagingInfo().iEnd;
},
});
This discussion has been closed.
Replies
Allan
Use Ajax loading for a speed increase, as the FAQ suggests.
Allan
Allan