hello, im working on a ejb3 application and i noticed that all the entities are stored in the cache root node (as far as i can see). im wondering how optimal this is...? in our application we will try to have as much in cache as possible (100k-1m), but if all entities are added to the root i fear that performance will suffer (even more than if the objects where stored down the cachetree in a more local way), is this an correct assumption?
The reason for a tree is to structure your data to hopefully alleviate locking interference when performing writes. Depending on your application, all entries off the root may work fine.