What method is best for huge table?
What method is best for huge table?
I have a table with 18 columns and 5000 rows, initiated as follow:
[code]
oTable = $('#example').dataTable({
"aoColumns": [
{ "bSortable": false },
null,
null,
null,
null,
{ "bSortable": false },
null,
{ "bSortable": false },
null,
null,
null,
null,
null,
null,
null,
null,
null,
{ "bSortable": false }
],
"bPaginate": false,
"bStateSave": true
});
[/code]
When I open the page in FF and Chrome it hangs after about 1 minute.
Do you think it would work better if I convert to ajax, js array or do I need to use server side? I rather not use server side to keep the load down.
Any ideas how to improve/reduce load time?
[code]
oTable = $('#example').dataTable({
"aoColumns": [
{ "bSortable": false },
null,
null,
null,
null,
{ "bSortable": false },
null,
{ "bSortable": false },
null,
null,
null,
null,
null,
null,
null,
null,
null,
{ "bSortable": false }
],
"bPaginate": false,
"bStateSave": true
});
[/code]
When I open the page in FF and Chrome it hangs after about 1 minute.
Do you think it would work better if I convert to ajax, js array or do I need to use server side? I rather not use server side to keep the load down.
Any ideas how to improve/reduce load time?
This discussion has been closed.
Replies
Allan
Ok, then I'll convert to server-side!
Another question: I really like ColVis, I'm planning to replace my own solution with yours. In the example the selection is not saved between pageloads, is that possible to do?
Since I have 18 columns, the drop down menu would be quite long. Do you know how to make it scrollable?
2. Scrolling - I've not tried it, but if you set a height on the element (class of "ColVis_collection") and overflow: auto - then that should do the trick.
Allan