0

i new for use apache cassandra, i have install cassandra and use cqlsh in my laptop

i used to create table using :

create table userpageview( created_at timestamp, hit int, userid int, variantid int, primary key (created_at, hit, userid, variantid) );

and insert several data into table, but when i tried to select using condition for all column (i mean one by one) it's error

maybe my data modelling wrong, maybe anyone can tell me how create data modelling in cassandra

thx

ihsansat
  • 503
  • 2
  • 7
  • 20

1 Answers1

1

You need to read about partition keys and clustering keys. Cassandra works much differently than relational databases and the types of queries you can do are much more restricted.

Some information to get you started: here and here.

Community
  • 1
  • 1
Jim Meyer
  • 9,275
  • 1
  • 24
  • 49