Joined: Mon May 05, 2008 10:34 am Posts: 11 Location: Houston, TX
|
You ask a pretty open question so I will give a pretty open ended answer regarding NHibernate. From a design perspective I'd make sure we have surrogates designated for each table. It makes joins simpler and faster as well as making Equals & GetHashCode overrides easier and more robust.
Secondly I would start with everything set to lazy load.
Next I would look at implementing AJAX Grids, such as Teleriks, where when you retrieve parent to child information it can be done on the event of something. This means you will only retrieve back the data that's necessary.
I'd look as an efficient way of handling sessions, personally I use the Spring.Net framework and I think the way they have implemented it is very robust and flexible. Castle project also has a good implementation of this from what I have hard.
Next I would make sure that I am using the latest version of NHibernate (2.0).
Also use generic ILists and <Bags> for your one-to-many relationships as they are faster.
Finally use criteria expressions for your query over HQL.
Hope some of this helps.
Good luck!
|
|