Regular |
|
Joined: Fri Jun 11, 2004 6:27 am Posts: 81 Location: Yaroslavl, Russia
|
On my opinion this is very weak architecture. At least, to use with NHibernate. Some possible problems:
1. NH session is not thread safe. You will have to somehow handle it yourself.
2. You accumulate changes and flush it once a minute. What will happen if flush would fail? Every change made during last minute could be lost and it's very hard to inform change originator about it.
3. NH session with very big amount of objects works slowly.
4. You are trying to move part of SQL server work into the application. You will have to think abut transactions isolation, atomicity and so on. It's way too hard.
5. What if your applcation will be terminated before minute-flush? All transactions made in the last minute will be lost.
_________________ Best,
Andrew Mayorov // BYTE-force
|
|