ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Rudyak <irud...@gmail.com>
Subject Re: Cannot query on a cache using Cassandra as a persistent store
Date Mon, 26 Sep 2016 17:22:30 GMT
Hi Guang,

If Cassandra table structure changed you should also change Ignite cache
mapping settings specified by Cassandra persistence descriptor. For this,
you need to destroy and recreate your cache or you can just create another
cache with the most actual mapping settings.

Yes you are free to create your Ignite caches dynamically through the code.

Regarding the strategy it all depends on your specific case. If for example
you are using POJO persistence strategy and changed Cassandra table schema
(added or removed some columns), for these changes to be reflected in Ignite
cache, you need:

1) Implement new java POJO class which will reflect new structure of
Cassandra table
2) Prepare new Cassandra persistence descriptor which handles all the
mappings between Ignite and Cassandra
3) Refresh cache mapping settings and reload data set into memory, either by
creating new cache or recreating the previous one

View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Cannot-query-on-a-cache-using-Cassandra-as-a-persistent-store-tp7870p7950.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message