Re: write behind is not triggering for created table through query

2020-01-14 Thread Ilya Kasnacheev
Hello! You should not specify key_type in this case. Can you show code of your cache store / factory? Regards, -- Ilya Kasnacheev вт, 14 янв. 2020 г. в 19:18, siva : > Hi, > yes,type of key is string. > String cacheName="C091E548-B45A-49B4-B8EC-2CB5E27C7AF6"; > cacheCfg = new CacheConfigurat

Re: write behind is not triggering for created table through query

2020-01-14 Thread siva
Hi, yes,type of key is string. String cacheName="C091E548-B45A-49B4-B8EC-2CB5E27C7AF6"; cacheCfg = new CacheConfiguration(cacheName) { Name = cacheName, CacheStoreFactory = new TenantCacheStoreFactory(_logger, connectionString),

Re: write behind is not triggering for created table through query

2020-01-14 Thread Ilya Kasnacheev
Hello! Can you show complete cache configuration (template)? I imagine it's possible that your cache ends up having primitive type as key, yet you try to use it as binary object in cache store. Regards, -- Ilya Kasnacheev пн, 13 янв. 2020 г. в 15:10, siva : > Hi, > Thanks for reply...write b

Re: write behind is not triggering for created table through query

2020-01-13 Thread siva
Hi, Thanks for reply...write behind triggering now.but getting exception in writeAll() method. I have one query on insert what will be the key and value for writeAll() method,if i defined or not in create query commond key_type and value_type?.is this key_type and value_type needed.? but in case

Re: write behind is not triggering for created table through query

2020-01-13 Thread Ilya Kasnacheev
Hello! You need to employ cache configuration templates to add Write Behind to cache configured via SQL: https://apacheignite.readme.io/docs/cache-template In your case, you created two caches: one is empty but with write behind, other is with SQL-inserted data but without Write Behind. Regards