Return object twice from a remote call?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Group,

I have situation where a call from client retrieves an object from remote
server which contains a collection of child class. Some times the child
class collection will grow to tens of thousands.

When the child collection grows, the client need to wait for a longer time,
inorder to display anything on screen.

My requirement is that, Initially I need an object with 20 child
collections. Later the object containing all data need to be returned back
to the client. What is the best solution for the same?

Can I use some mechanism where a call from client is given to the server and
the server returns object containing 20 child collections and returns the
object. Meanwhile the process will continue at server to retrieve all data
and get all collections. Later send it back to the client? But I am confused
how the client will get notified?? Asynchronous call can be used? But how
the same function can return initial object cotaining fewer child collection
and later send the whole data?

Another option I am looking for is the storage of object at the server side
with a unique Id? But I am not sure how it can achieved?

Note: The database call can be made only once for retreiving the whole data.
Business logic part at the server needs to handle breaking of data
and sending it appropriately to the client

Any help appritiated..
Shi


.


Quantcast