I propose that we use 2 levels of caching:
Level 1: Map storing.
Level 2: Relational storing.
With de level 1 cache, we solve the perfomance weakness
of byId acess of data.
Another point is that we can improve the mapping engine
to only store in the relational database data used in
queries. The other bean data could be in the Map. In
this way the search in the relational database has the
function to retrieve the id's, or either, the
relational database is the index engine to retrieve
data stored in the maps.
I guess that the level 1 should be responsability of
the kernel.
Logged In: YES
user_id=1277429
Isso tem que ser bem pensado. Afinal, seria um cache do
cache... vamos analisar se vale a pena