Lazy Loading vs. Eager Loading

Feb 28, 2011 at 7:33 PM
Edited Feb 28, 2011 at 7:52 PM


I'm using Caliburn.Micro in conjuction with WCF Ria Services.

As an example: I have a customer workspace with about 5 screens (different types of business data of a customer) held in a conductor. I am loading data of one customer. Each screen loads data of about one or two entites related to the customer. Each entity contains about 10-20 properties. So there is not a really big amount of data per customer.

I am not sure if I should load the customer data by lazy loading when a screen is activated or load the whole bunch of customer data at the beginning when the customer workspace is loaded.

I am looking forward to hear about your experiences. The main focus I have is to provide the best possible user experience.

What do you think about this two possibilities? (pros&cons)