문제

I got a table which is modified by two applications. One of them is using nhibernate. How do I disable caching for that table? Can it be done in the mapping file?

도움이 되었습니까?

해결책

Cache is not enabled by default.

If you are referring to the "first level cache", i.e. the Session, there is something wrong with your usage pattern.

다른 팁

Assuming you have the L2 cache enabled for the session factory (via cache.use_second_level_cache), you should be able to exclude the <cache> element in your mapping file for that model.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top