These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Large Collections in Remoting Scenario
PostPosted: Mon Dec 15, 2008 9:29 pm 
Newbie

Joined: Thu Dec 14, 2006 7:08 pm
Posts: 11
Hi,

How do people handle parent/child relationships for C.R.U.D situations in a client/server application using .net remoting that deals with parents that have large collections? For examples sake lets just say it is an Category --> Item relationship.

I'm using NHibernate for an ORM. While the read performance is acceptable update, insert and delete are not.

My understanding as to why performance is poor is because the DAO on the server hands the client a copy (serialized) of the object. As a result any change to the objects state isn't reflected on the server and thus the ISession isn't aware of it. Therefore when I go to save the object NHibernate generates SQL statements for every item in the collection.

A couple of possible solutions come to mind,

* Remove the collection from parent and set the parent of the supposed child in some "Manager" service that accesses DAO on the server.

* Making the collection items responsible for knowing whether they're dirty and persist one-by-one accordingly. Perhaps I can plug this into Nhibernate somewhere?

Other options?



Cheers,
Aeden


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.