![]() |
![]() |
|
[
Permalink
| « Hide
]
Andy Jefferson added a comment - 01/Oct/12 10:32 AM
This can be implemented by having the "value" for such a field as a CachedPC of its own. So the populate and retrieve field managers need to cater for nested CachedPC objects.
SVN trunk has support for L2 caching of serialised/embedded fields, enabled by persistence property "datanucleus.cache.level2.cacheEmbedded". Currently defaults to false until we move to 3.1 at which point it is turned on, so people can try it out in 3.1.x lifecycle and give feedback
I haven't checked out the source code in this area but in my ignorance: If these objects are embedded wouldn't they already be cached within the first class object they are embedded in when it is cached?
perhaps look at the source code for the *L2 cache*. These are not normal objects and no, those fields were not previously cached
|
||||||||||||||||||||||||||||||||||