I have a Silverlight 4 application that pulls entities out of a database using WCF RIA services. These data objects are quite simple, just a few fields, but one of these fields contains binary data of arbitrary size. The application needs access to this data mainly as soon as possible after the user logs in to display in the list, enable selection, etc.
My problem is with the size of this data, load times are unacceptable and may come close to the default RIA service timeout.
I would like to partially partially load objects into my local data context in order to have identifiers, names, etc., but not binary data. Then I could at a later point (i.e. when it was really necessary) fill in the binary fields of the objects that I need to display.
Any suggestions on how to do this would be welcome.
Another approach that came up with me when writing this question (how often does this happen ?!) was that I could move the binary data to a separate database table connected to the original 1: 1 record, which would allow me to make use of RIA lazy loading on this binary data.
again .. comments are welcome! Thanks.
source
share