Thanks, Fabio. That's an interesting blog post, I will check out the
tolerant cache.
Could you explain a little why you don't think it is worth trying to
update a query in the cache?
I am thinking of the following tow situations:
A) Current Situation:
1) do expensive query on table FOO, (NH mapping class FOO_ENTITY) and
put query and entities returned in L2 cache
2) create new FOO_ENTITY
3) FOO_ENTITY is now cached in the entity cache
4) run query again: must hit RDBMS again
OR
B) With Query Updates:
1) do expensive query on table FOO, (NH mapping class FOO_ENTITY) and
put query and entities returned in L2 cache
2) create new FOO_ENTITY
3) FOO_ENTITY is now cached in the entity cache
4) do not invalidate the query, but instead run in-memory query on
FOO_ENTITY, and possibly add to cached query ids
5) no extra hit to RDBMS
My NH knowledge is very limited, so I am probably missing something
big here.
Cheers,
Jorge
> you will not gain something querying first the cacje and then the RDBMS
> where needed.
> If you can accept "eventual consistency" queries avoiding the cache
> invalidation at each insert/update/delete what you are looking for is:
http://fabiomaulo.blogspot.com/2009/04/tuning-nhibernate-tolerant-que...
> >
nhusers+u...@googlegroups.com<
nhusers%2Bunsu...@googlegroups.com>
> > .