Speeding up datatables when retrieving data from indexedDB
Speeding up datatables when retrieving data from indexedDB
gaurav1
Posts: 3Questions: 0Answers: 0
I am using datatablejs on client side for displaying the database to client. I download the database from server initially using backbone indexeddb adapter and store it in indexedDB so as to support offline access to data. However, datatables take approx around 5 minutes to render 20,000 entries from indexedDB. This is my JS code:
http://jsfiddle.net/mPyH5/
I have tried using methods listed here: http://datatables.net/faqs#speed but none of them works. I have also tried using infinite scrolling. It doesn't reduce time. Can anybody suggest a way to make the list page load faster?
http://jsfiddle.net/mPyH5/
I have tried using methods listed here: http://datatables.net/faqs#speed but none of them works. I have also tried using infinite scrolling. It doesn't reduce time. Can anybody suggest a way to make the list page load faster?
This discussion has been closed.
Replies
Allan
If you have the data available, just feed it to DataTables using aaData as native Javascript arrays or objects and enable deferred rendering ( bDeferRender ). Then the slowest part will be reading the data from the database.
Allan
Allan
what will be the server side script to get data from indexedDB.
I mean how code will look like.
can any one please suggest?