Reduce rendering time / browser freezing
Reduce rendering time / browser freezing
hi, i've got a set of about 300 records and it's taking about 15 seconds to render the datatable. i'm loading my table from the server using breeze.js, and loading that result set into an array of objects. the platform i'm using is durandal using knockoutjs, breezejs, and this datatable. i'm using knockoutjs' custom binding handler to help create the table.
i've tried setting the bDeferRender: true, but it's now causing the table not to render any of the rows (headers only).
*sorry, but i can't produce a fiddle right now - it's kinda involved to do with durandal.
here's my table. the data: submissionsDataTable part is this: the 'data' is used in the knockoutjs custom binding, and submissionsDataTable is the name of my observable array (object array that contains the data).
[code]
ID
Program
UPC
Product ID
Artist
Title
[/code]
any ideas what i might be missing?
i've tried setting the bDeferRender: true, but it's now causing the table not to render any of the rows (headers only).
*sorry, but i can't produce a fiddle right now - it's kinda involved to do with durandal.
here's my table. the data: submissionsDataTable part is this: the 'data' is used in the knockoutjs custom binding, and submissionsDataTable is the name of my observable array (object array that contains the data).
[code]
ID
Program
UPC
Product ID
Artist
Title
[/code]
any ideas what i might be missing?
This discussion has been closed.
Replies
Allan
success!
however, just to test a larger amount, i did add 5000 records to the db and this did end up slowing it down despite my above change (took about 7 seconds of browser-hang time - incidentally i'm using the latest Google Chrome on a PC with lots of RAM and CPU power).
i guess that's to be expected - 7 seconds for 5000 client rows (even though only 10 are displaying).
is there still something else i could do - besides paging the records on the server?
Allan
http://d.pr/i/STrC
http://d.pr/i/r9Oq
Allan
i'll let you know if i can create an example. thanks for your help.