newbie question: dealing with a large dataset.
newbie question: dealing with a large dataset.
Hello !
Currently my table takes a while to load as I am loading all the records. (I make a rest call to get my data)
Take two:
I want to make it faster.
I think of 2 options.
1) Get a set of search parameters first. Do a rest call and then draw the table?
2) If server side is the right way to do it..
How can I define the first set of records to display?
And does each search make a server side call to fetch the data?
Can you please provide your feedback on how I can go about with these options
Thanks for your help!
James.
Answers
The first FAQ here will get you started:
https://datatables.net/faqs/index#General-initialisation
More info regarding server side processing:
https://datatables.net/manual/server-side
Your server side code will need to support the parameters documented on that page. The initial page requested will be the first page with the number of records defined by the
pageLength
(default 10). Each draw of the table, searching, sorting, etc will cause a server request for data.Kevin