Reputation: 1554
I have a very small column family that is accessed like crazy and hardly ever written to. I would like to enable row caching for just this one column family.
I'm having a hard time determining how to do this. According, the comments section of this documentation, I can "enable / disable caching on a per CF basis." How exactly do I accomplish that?
Thanks!
Upvotes: 2
Views: 583
Reputation: 1554
Never mind, I finally found it.
create column family my_column_family
with key_validation_class = 'CompositeType(LongType, DateType)'
and comparator = UTF8Type
and caching = 'ALL'
and column_metadata= [
{column_name: my_column_name_1, validation_class: BooleanType},
{column_name: my_column_name_2, validation_class: BooleanType}
];
Upvotes: 3