Quantcast
Channel: Open RIA Services
Viewing all articles
Browse latest Browse all 124

Edited Feature: EntityCollection load is very slow for large number of entities [92]

$
0
0
For very large collections of dependent entities (> 10000) there is required significant time to access EntityCollection for the first time. The problem is most probably caused by multiple invocations of Contains method on List<T> Entities property in EntityCollection class.

The sample execution time for 32011 dependent entities is: 5907ms.

The solution for the problem might be to introduce additional HashSet which is synchronised with Entities and execute Contains method on it instead of List<T>.Contains.

Viewing all articles
Browse latest Browse all 124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>