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

  1. Understand the domain and define specific use cases (questions) for the application.

  2. Develop the initial graph data model:

Model the nodes (entities).

Model the relationships between nodes.

  1. Test the use cases against the initial data model.

  2. Create the graph (instance model) with test data using Cypher.

  3. Test the use cases, including performance against the graph.

  4. Refactor (improve) the graph data model due to a change in the key use cases or for performance reasons.

  5. Implement the refactoring on the graph and retest using Cypher.

Refactoring

Strategy:

  1. property di node menjadi label

    eliminate duplicate datat

  2. property di relationship menjadi nama relationship yg spesifik

  3. intermediate node

agregasi punya urutan, tapi masi tenary

MGM

cari yg kompleks dulu