I have a data massive with lot of data and try to display this data in table at AngularJS (with filtering and sorting). For this purpose I try to use ng-Table, but when data is too much (> 1000 rows) it start slowing on remote server, when data is too too much (> 5000 rows) the page with this table not even load at localhost machine. As I understand for filtering and sorting need to load all data from database, may be anybody know some trick and not load all data. Or may be anybody know another table plugin for Angular.
Thanks for any help.
The info you need is here: http://tech.small-improvements.com/2013/09/10/angularjs-performance-with-large-lists/
Recommendations are:
- Paginate the rows, they can't see all 2000 rows at one time anyway
- Render the list without data binding
- Do not use a inline method call for calculating the data
- Use two lists (one for the view to display, one as data source)
- Use ng-if instead of ng-show for additional templates
- Do not use AngularJS directives ng-mouseenter, ng-mouseleave, etc.
- Tuning hint for filtering: Hide elements with ng-show that are excluded
- Tuning hint for filtering: Debounce input
Your filtering and sorting is likely the problem, apply filters in controllers and sort them there too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With