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.