cassandra limitations (RDBMS Vs CASSANDRA)

1.7k views Asked by At

My project environment: SpringWS, Hibernate, Oracle and jBoss. I got a POC work to persist data into cassandra in case of my RDBMS (oracle) is down. So Cassandra will act as failover/backup for Oracle. I am new to cassandra and planning to use datastax to persist data in cassandra and want to know to the challenges. (Since its POC my cassandra (2.0.3) is running in single node)

Challenges I know (may be I am wrong)

  1. Like RDBMS, I cannot define incremental key definition in cassandra and PK should be handled by application (using TimeUUID)
  2. Cassandra will not support Many-To-Many. So in this case, like RDBMS hibernate, I cannot set multiple Person Entities in to Department Entity and persist in to cassandra. Instead there will be two insert call to cassandra. one to persist DEPARTMENT and another for PERSON table.
  3. Joins are not possible in cassandra. Cannot get PERSON and DEPARTMENT information in one CQL (v3).

Can you please point out other challenges also?

2

There are 2 answers

0
Sven Delmas On
0
user3177983 On

Hierarchical structures cannot support M2M directly. 1. Absorb one into the other as an array. E.g., dept has many persons. Put person under dept in the composite structure. 2. If there is a lot of maintenance on person, keep dept and person as is but add the composite structure. The composite structure is a prejoin.