3 ms·
How about this free tutorial from datastax ? https://academy.datastax.com/resources/ds201-foundations-apache-cassandra?unit=introduction-course-introduction ht
by codegeek 10y ago
How about this free tutorial from datastax ?
https://academy.datastax.com/resources/ds201-foundations-apache-cassandra?unit=introduction-course-introduction https://academy.datastax.com/resources/ds201-foundations-apa...
- prats226 10y agoI already did this course. However there still a few cases which are not clear to me. I don't know if sub-optimal solution I am assuming for those cases is correct or I am doing any mistake with data modeling / there is alternate way of data modeling to avoid it. For eg. It is advisable in cassandra to do data modeling around queries. However if I model set a column as clustering column for the purpose of sorting based on it and if that object is dynamic, because it is clustering column, I cannot update its value since it belongs to primary key now for that table. In that case, two options are 1) Sorting on client side (which is bad) 2) Delete complete row and insert new row (which will create tombstone) Is there other valid way of achieving this in Cassandra data modeling? Eg. I have table_A and for query of getting all rows with a particular state, table_A_by_state. However since state will be dynamic, and you will need to update state in table_A_by_state which comes with options I mentioned above. Has someone else faced same problem or is there other way of data modeling for this problem? table_A: Columns: id (K), name, state table_A_by_state: Columns: id (K), state (C), name