Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: Performance issue in Prism 4

$
0
0
Hi,

You mentioned that each MDI view (which takes 4 seconds to load) is composed of a TabItem which contains other 3 views. Does each of this views have a view model that retrieves data from a database? If so, the measurement of 1 second is the total time required to retrieve the information for the three view models, or for a single one. Are those request to the data base being executed parallel to each other or sequentially? (for example, the thread is blocked until the request comes back from the data base.) I'm asking these questions mainly to have a better understanding of the composition of your MDI views and in order to discard the communication with the data base as the cause of the problem.

Other tests you could do to track down the cause behind the delay include adding more views to the MDI view and check if the time required to show the view increases. Also, you could try using mock data in your view models, instead of retrieving data from the data base to check if this have any influence in the loading time of the view.

Regards,

Damian Cherubini
http://blogs.southworks.net/dcherubini

Viewing all articles
Browse latest Browse all 1878

Trending Articles



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