From: Christian M. <vc...@cl...> - 2002-07-30 16:26:28
|
I am thinking about the cache and i have 2 issues in mind. Let's imagine as an example a forum application, we got Forum, Thread, = Message objects. Forum 1 --> N Thread 1 ----> N Message ( bi directional associations) First issue: Forum1 get cached then accessed multiple times from the cache, while = being accessed, getThreads() method is used. At the end, we got a graph of objects and since the cache share the same = reference to the Forum1, it will cache this graph of object, this could = lead to caching the whole DB over the time... Second issue: In a multi threaded environement, multiple threads could get a copy from = the cache of the Forum1 object, how to deal with the concurrency access = of non-synchronized collections ? Comments anyone ? Best regards Chris |