I'm using Cassandra 0.8.2
I am attempting to use the "valueless column" technique to set up my cassandra schema. The idea behind the valueless column is the following: The name of your column becomes the relevant information & the value of the "name/value" pair is empty. This is used to make queries faster - an example of denormalization. I want the name of the column to be the url of the back link. The row key is be a UUID of the target url of the back link. Is this even a good idea/schema design?
I'm using a very basic example to get the point of my question across. Here's what I have set up using the Cassandra-Cli:
create column family ArticleBackLinks
with comparator = UTF8Type
and key_validation_class = UTF8Type
and default_validation_class = UTF8Type
and column_metadata =
[
{column_name: www.arstechnica.com, validation_class: UTF8Type},
{column_name: www.apple.com, validation_class:UTF8Type},
{column_name: www.cnn.com, validation_class: UTF8Type},
{column_name: www.stackoverflow.com, validation_class: UTF8Type},
{column_name: www.reddit.com, validation_class: UTF8Type}
];
I get the error:
Command not found: `create column family ArticleBackLink...
I think my error is due to the period I am using in the column_name. In short, I would like to know if some of you have come across better ways to use the "valueless column" idea in Cassandra? Any good/better examples of the valueless column technique? Is my idea even the right way to use the valueless column technique?
Thanks in advance guys.