Hi there,
I have an issue with near cache.
I deploy an ignite cluster on server side and run a ignite client in my
local.
I would like to use NearCache for my local client. 
Lets say, I have 4 Near cache configuration which corresponding to 4 cache
"CacheA", "CacheB", "CacheC",and "CacheD". And these 4 caches is related to
TableA, TableB, TableC and TableD.

If I use  " ignite.getOrCreateNearCache("CacheA", nearCacheAConfiguration)"
seperately, everything works fine for all these 4 different cache.
However, I also have a use case to use Cross-Cache Queries, 
for eg:  "
SqlFieldsQuery sql = new SqlFieldsQuery("SELECT A.COLUMN1, B.COLUMN2 FROM
TableA AS A LEFT JOIN TableB AS B ON A.COLUMN3 = b.COLUMN4 WHERE ... ");
this.ignite.getOrCreateNearCache("CacheA",nearCacheAConfiguration
).query(sql).getAll()...
"
And if I run the second method, it will show error logs like
"javax.cache.CacheException: class org.apache.ignite.IgniteCheckedException:
Failed to start near cache (a cache with the same name without near cache is
already started)"
And also everytime if i run cross caches queries, it will start all caches.

So my question is, if i want to use near cache for single cache and also
cross cache query, is there a way to config?
Thanks!
Sherry



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to