Yes, but GemfireTemplate also has this <https://github.com/spring-projects/spring-data-gemfire/blob/master/src/main/java/org/springframework/data/gemfire/GemfireTemplate.java#L293-L378> [0].
[0] - https://github.com/spring-projects/spring-data-gemfire/blob/master/src/main/java/org/springframework/data/gemfire/GemfireTemplate.java#L293-L378 On Wed, Jan 13, 2016 at 10:30 AM, Real Wes Williams <[email protected]> wrote: > > When I’m in a function that was executed onRegion, is it safe to execute > the query on the local region? Or use QueryService? > > The doc on Region.query omits mention when it says: > > * When executed from a client, this method always runs on the server. > * However application should use QueryService to execute queries. > * ... > */ > public <E> SelectResults<E> query(String queryPredicate) > throws FunctionDomainException, TypeMismatchException, > NameResolutionException, > QueryInvocationTargetException; > > But the Spring GemFireTemplate has: > > @Override > public <E> SelectResults<E> query(final String query) { > try { > return this.getRegion().query(query); > > > Thanks, > Wes > > -- -John 503-504-8657 john.blum10101 (skype)
