OrientDB:边缘VS LinkList vs Linkmap [英] OrientDB : Edges vs LinkList vs Linkmap
问题描述
使用 linklist
,a linkmap
或者使用边
来存储我的顶点之间的关系?
边定义两个顶点之间的关系。例如,你定义了两个顶点Person和Car。然后您定义一个边缘驱动器。该边将两个顶点连接在一起。 Jane驱动Ford。
链接列表是与另一个类关联的类的列表。 Car类可能有Part类的部分链接列表。一辆车由多个部分组成。
linkmap是与另一个类关联的关键类值的映射。汽车类可能有PartType的部分链接图。一辆汽车由多个部分组成,可以按发动机,车身,底盘等分组。
What are the pros and cons for using either a linklist
, a linkmap
or an edge
to store relationships between my vertices ?
An edge defines a relationship between two vertices. For example, you define two vertices, Person and Car. You then define an Edge Drives. This edge ties the two vertices together. "Jane" Drives "Ford".
A linklist is a list of classes associated with another class. A Car class might have a linklist of parts from the Part class. A car consists of multiple parts.
A linkmap is a map of key, class values associate with another class. A car class might have a linkmap of PartType, Part. A car consists of multiple parts, which can be grouped by engine, body, chassis, etc.
这篇关于OrientDB:边缘VS LinkList vs Linkmap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!