Graph
semakin sedikit row yang diambil semakin cepat
Graph Components
Graph = RDBMS/ontology
- Labels = entity/table
- nodes = row/individual
- relationship(physical) = relasi
- properties = atribut/data property/key-value pairs
nodes saja gabisa, perlu relationship
Data Modelling Process
-
Understand the domain and define specific use cases (questions) for the application.
-
Develop the initial graph data model:
Model the nodes (entities).
Model the relationships between nodes.
-
Test the use cases against the initial data model.
-
Create the graph (instance model) with test data using Cypher.
-
Test the use cases, including performance against the graph.
-
Refactor (improve) the graph data model due to a change in the key use cases or for performance reasons.
-
Implement the refactoring on the graph and retest using Cypher.
Refactoring
Strategy:
-
property di node menjadi label
eliminate duplicate datat
-
property di relationship menjadi nama relationship yg spesifik
-
intermediate node
agregasi punya urutan, tapi masi tenary
MGM
cari yg kompleks dulu