[hibernate-issues] [JIRA] (HSEARCH-3952) Configurable cache update strategy for entity loading with Hibernate ORM

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Wed Jun 17 10:22:36 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *updated* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiNjkxNWUxOWUxNWNiNDg3ZDgxNzk3NWUzOTA1NGU0NGUiLCJwIjoiaiJ9 ) / New Feature ( https://hibernate.atlassian.net/browse/HSEARCH-3952?atlOrigin=eyJpIjoiNjkxNWUxOWUxNWNiNDg3ZDgxNzk3NWUzOTA1NGU0NGUiLCJwIjoiaiJ9 ) HSEARCH-3952 ( https://hibernate.atlassian.net/browse/HSEARCH-3952?atlOrigin=eyJpIjoiNjkxNWUxOWUxNWNiNDg3ZDgxNzk3NWUzOTA1NGU0NGUiLCJwIjoiaiJ9 ) Configurable cache update strategy for entity loading with Hibernate ORM ( https://hibernate.atlassian.net/browse/HSEARCH-3952?atlOrigin=eyJpIjoiNjkxNWUxOWUxNWNiNDg3ZDgxNzk3NWUzOTA1NGU0NGUiLCJwIjoiaiJ9 )

Change By: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b )

Currently we always use the default cache update strategy when loading query results, and that deafult strategy is {{CacheStoreMode.USE}}: put entities into the cache when they are loaded as part of a query (but don't refresh the cache if they are already there).

I can imagine this strategy being annoying when one expects very few cache hits from search queries.

Let's add a configuration property alongside the cache lookup strategy, to configure how search hits are **added** to the cache. The implementation will translate directly into the {{CacheStoreMode}} of Hibernate ORM queries.

( https://hibernate.atlassian.net/browse/HSEARCH-3952#add-comment?atlOrigin=eyJpIjoiNjkxNWUxOWUxNWNiNDg3ZDgxNzk3NWUzOTA1NGU0NGUiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3952#add-comment?atlOrigin=eyJpIjoiNjkxNWUxOWUxNWNiNDg3ZDgxNzk3NWUzOTA1NGU0NGUiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100129- sha1:3ed9692 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200617/c106c8be/attachment.html 


More information about the hibernate-issues mailing list