Migrating to DSE Graph from a relational database

Migrating a relational database to DSE Graph requires analyzing how the data is stored in the relational tables. Consider the following factors:

  • A relational table can represent either a vertex or an edge. If the relational table has an independent primary key, then the data is stored as a vertex in DSE Graph. If the relational table is a join table, then the data is stored as an edge in DSE Graph.

  • Relational table columns that are not foreign keys are stored as property keys in DSE Graph.

  • Foreign keys in relational tables indicate relationship. Determine the use of referencing foreign keys to discover relationships between vertices and edges in DSE Graph.

A good starting point to build the graph data model is an entity-relationship (ER) diagram for the relational database. The ER diagram will show entities that will be vertex labels, entity attributes that represent property keys, and the relationships that will be edges in DSE Graph.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com