clarencen/lshift — Issue #89: Optimize call to get all pairs in a domain
Author: clarencen
Created: 2011-11-14 22:41:40+00:00
State: open

#367 introduced a short term cache-based workaround for a hotspot that resulted from 2L misses (see #366). The solution in #367 was to cache this call explicitly. Ironically, the offending child collection (i.e. the collection whose hydration form the DB) is being discarded before the control returns back to the caller. So we are effectively optimizing the retrieval of something that gets binned anyway. Maybe it would be a more holistic solution to just not hydrate the data in the first place, potentially by introducing a call that just returns PairDefs instead of the whole object graph.