jQWidgets Forums
jQuery UI Widgets › Forums › Plugins › Data Adapter › Performance Improvements with DataAdapter?
Tagged: jqxDataAdapter, jqxgrid
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 11 years, 7 months ago.
-
Author
-
We recently purchased a license for jqWidgets and have noticed when using Knockout with jqWidgets that even passing in POJO’s the performance is slow at best (2500 records into a grid)
We can make adjustments to implement virtualization and paging records etc… but in general I would like to see that I can shove a thousand records or so in and not see the browser freezing for any noticeable period of time.
I saw a couple of posts where you have mentioned that using a data adapter would be beneficial for performance increases and what not but I can’t find any supporting evidence (ie. if you use a data adapter this is what happens differently and this is what you can expect to see)
Could you give a few general points about performance and how a data adapter can improve performance or what other posts or blogs might point us in the right direction?
When profiling the operations in Chrome I am seeing the following functions or operations as taking up the most resources and time –
b.extend.fn.extend > loadflatrecords 27%
loadflatrecords > reload 9%
reload > refresh 3%
Thanks in advance,
Patrick
Hi Patrick,
Virtualization is already implemented. If you load thousands of records, then you may use Server Paging. The performance according to us is pretty good and we do not plan improvements in the dataAdapter or jqxGrid about it. Example of loading 30 000 records – http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/largedataset.htm?arctic or you can load your data on small chunks as shown in this sample: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/virtualdata.htm?arctic
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/Thanks for the reply, I actually made HUGE improvements by adding a DataAdapter (10seconds down to 100ms) and was just curious what is actually going on in the backend without diving into it : )
Hi patrickwalters,
In general, the Grid is optimized for working with jqxDataAdapter as a data source and the data adapter internally manages the KO observable array(when the dataType is “observablearray”) and tracks the changes in the observable array.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.