I plan to use the Java object as a custom type and store it in Cassandra. I take 2 data members from the class and turn them into a primary key and save the rest of the data members in a custom type.
data members of my class: name, date_of_birth, occupation, last_visit, family_members, total_income
primary key: name, date_of_birth
cassandra custom type members: occupation, last_visit, family_members, total_income
Whether a user-defined data type will have any performance advantages when writing or reading compared to storing individual data items in terms of Cassandra data types.
source
share