I am struggling with data modeling in cassandra where i have different attributes for different organizations. As there would be any number of attributes i am unable to model a dynamic number of columns in schema. Secondly, when i use map for this, i am unable to query against those attributes or index them etc. Am i missing something or this is a limitation in cassandra?
Scenario
one organization selects specific attributes to collect data for and they can change those attributes anytime. When they change, number of attributes and name of attributes changes. If previously we were collecting data for att1,attr2,attr3
, now we are collecting attr4,attr5,attr6,attr7,attr8,attr9
. And this can be changed at anytime for any organization. Furthermore, organization will be searching massively on those attributes.
- How can we model such scenario in cassandra.
- if it's a limitation, what could be the alternatives of cassandra where we have read/write (mostly write and often read. Not update/delete) proficiency.
- Do we have to combine any other framework with cassandra? like lucene etc
Thanks in advance.