Hi Alexandre,
I’m glad you figured it out. Your example shows nicely that the track by feature works as a charm!
There is still something that has to be added, the track by feature requires an unique identifier.
As an example, it you don’t have an unique ID, you can combine it with the name like this:<tr ng-repeat="a in actualArray track by a.id+a.name">. As an alternative you can also do<tr ng-repeat="a in actualArray track by $index"> but then it’s not binded to your data at all.
Regards
Sander
Hi Alexandre,Before I give an answer to that I have a couple of questions.
- How large are we talking about? 1500 rows, or 15000 rows?
- How large is each row?
- Is this an desktop-only app?
- You are sending every second, the changes of the last 5 seconds? eh?
- How much changes are arriving? <1% 10%
- Are those just new rows?
- if 6 is no, can you split out the additions from the modifiers on the server?
Thank you very much for the tips. I'll move to a service. I made a mistake in the calculus. The update is about 30 rows per second, in average. The max update will be 300 per second, but rarely occurs. The idea for the index is great. Every row is an object.
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/dI61qYt_VCk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.