2007-12-16から1日間の記事一覧

where e.child = ? とするとクエリキャッシュが効かない?

# 以前にも同じことでハマったことがあったのをすっかり忘れていたのでメモ Query query = session.createQuery("from Entity e where e.child = ?"); query.setParameter(0, child);とパラメータにChildエンティティを直接渡すと、クエリキャッシュを有効に…

OSCacheとUpdateTimestampsCache

hibernate.cache.use_query_cache true This setting causes the creation of two new cache regions - one holding cached query result sets (org.hibernate.cache.StandardQueryCache), the other holding timestamps of the most recent updates to quer…