I'm using JQuery datatable to display all projects existing in my database:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('table.display').dataTable({
"bJQueryUI": true,
"sPaginationType": "two_button",
"aaSorting":[[2, "desc"]],
"bRetrieve": true,
"iDisplayLength": 10, // 10 records will be displayed by default
"sScrollY": "250px",
"sDom": '<"H"Tfr>t<"F"ip>',
"oTableTools": {
"sRowSelect": "multi",
"aButtons": [
"copy",
{
"sExtends": "csv",
"sTitle": "data"
}
]
}
});
})
</script>
If there are more than 10 records, it will be possible to move to the next 10 records using a button.
The problem is that one of my colleagues told me that this could make the page very slow in case we have a huge number of projects. I'm not sure with this because if I choose to display 10 records, then it won't make the page slow. Am I right ?
Bests