You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: scope L2 cache removal to the OptionSet.options collection only
Keep the entity-level caches on Option and OptionSet (read-write) -- only
the collection-level cache on OptionSet.options was actually driving the
N+1: a collection-cache hit (cached id list) combined with an entity-cache
miss on one of those ids is what makes Hibernate resolve ids one at a time
instead of just re-running the collection's own `WHERE optionsetid = ?`
query. Removing the entity caches too was conflated with a separate,
unvalidated change (a service-layer Caffeine cache to compensate for lost
keyed lookups) that we decided not to pursue.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/option/hibernate/OptionSet.hbm.xml
0 commit comments