Hello again.
I use a pretty classic UI design wherein users view a list of records (an EntityCollection) from a pick-list and select one (or more) of the records for editing.
Using adapter, it's a balancing act: when I generate the pick-list, should I prefetch all the related entities and collections and send the fully loaded EntityCollection across the wire, or should I create an EntityCollection with "skinny" entities (without all the related elements) and then make additional calls to the server when the user selects the record(s) that he wants to edit?
Advantanges of fully-loaded: one call. Subsequent entity editting calls are pulled from the EntityCollection without having to make new calls. Downside: EntityCollections often have main entities each with several related collections themselves. This Collection can be quite large, I think (even if I limit the number of records in the collection)
Advantages of "skinny" collection: Small collection crosses the wire. Downside: multiple server calls.
My applications must all be designed to run over the internet using remoting or web services (usually remoting).
What do you guys do?
I would like the server to report back to me what the size of the EntityCollections and Entities are that it received and transmits. How does one go about doing that?
Thanks all.
Jeff