Local Cache - local reads vs remote during an active transaction
Hello,
If we are using a local cache in write method that has an active Transaction, will a read done thru the local cache be local or remote? In this case, the object being written is in a different gigaspace. The local cache is on another gigaspace that just contains static used as reference data. That data is hardly ever changed but is read a different points for other purposes in this write method.
The documentation is a bit confusing to us because even though the read isn't transactional, there is an active transaction because the method called is annotated with @Transactional. What we are unclear about is will that read be remote or local against the cache. We know if this was a view, we would get an error message about not reading views within a transaction. We think this might be a performance issue for us because we thought the read would be local to the cache but behind the scenes it was actually doing a remote read each time even on objects we aren't writing.
Thanks
Rich
https://docs.gigaspaces.com/xap/12.1/...
Transactional Operations Transactional operations are always executed on the master space.