zoukankan      html  css  js  c++  java
  • Neo4j:Data Model Transformation:From Relation To Graph

    Here are some tips that help you with the transformation:

    • Each entity table is represented by a label on nodes
    • Each row in a entity table is a node
    • Columns on those tables become node properties.
    • Remove technical primary keys, keep business primary keys
    • Add unique constraints for business primary keys, add indexes for frequent lookup attributes
    • Replace foreign keys with relationships to the other table, remove them afterwards
    • Remove data with default values, no need to store those
    • Data in tables that is denormalized and duplicated might have to be pulled out into separate nodes to get a cleaner model.
    • Indexed column names, might indicate an array property (like email1, email2, email3)
    • Join tables are transformed into relationships, columns on those tables become relationship properties
  • 相关阅读:
    02
    01
    Redis、Mongo
    Django
    Django
    Django
    Django
    7.2
    Django
    contenttypes
  • 原文地址:https://www.cnblogs.com/happyframework/p/4523944.html
Copyright © 2011-2022 走看看