Yeah, I’m not syncing between contexts (as much as I’d like to :P)…this is about query caches.
On Wed, Nov 8, 2017 at 3:56 AM, Musall, Maik <m...@selbstdenker.ag> wrote: > Hi Lon, > > have you read this? https://cayenne.apache.org/docs/4.0/cayenne-guide/ > performance-tuning.html#turning-off-synchronization-of-objectcontexts < > https://cayenne.apache.org/docs/4.0/cayenne-guide/performance-tuning.html# > turning-off-synchronization-of-objectcontexts> > > I added this module to my server runtime builder (stripped down to the > relevant bit for this discussion): > > Module cachePropertiesModule = new Module() { > @Override > public void configure( Binder binder ) { > MapBuilder<String> props = binder.bindMap( String.class, > Constants.PROPERTIES_MAP ); > props.put( Constants.SERVER_CONTEXTS_SYNC_PROPERTY, > "false" ); > } > }; > > Maik > > > > Am 08.11.2017 um 01:40 schrieb Lon Varscsak <lon.varsc...@gmail.com>: > > > > Hey all, > > > > I’ve been using cache groups to do refreshing of object lists and it > > occurred to me today that this refresh is across all object contexts in > my > > application. So if User A has a list of orders for their account and > that > > is cached with the group “orderHistory” and User B also has a list of > > orders in “orderHistory”, running a refresh query will result in ALL > users > > refreshing their orderHistory caches. > > > > I’m not sure that this is what I want. How have you solved this > > situation? Do you care? :P I was thinking about doing something like > > WEB_SESSION_ID+cacheGroup…maybe this has some downsides I’m unaware of. > > > > Any feedback is appreciated. > > > > -Lon > >