I would like to convert this JSON to a data model in Cassandra, where each of the arrays is a collection without duplicates:
var data = {"data1": {"100": [1, 2, 3], "200": [3, 4]}, "data2": {"k1", [1], "k2", [ 4, 5]}}
I would like to query like this: data ["data1"] ["100"] to retrieve the sets. Does anyone know how you could simulate this in Kassandra? (The only thing I came up with was the columns whose name was the set value and the column value was an empty string, but that was wrong).
It is not normal to serialize sets as JSON or some other string, which would make it a lot easier.
In addition, I should note that OK to separate data1 and data2 into separate ColumnFamilies, it is not necessary that they be keys in the same one.
source share