Method and device for supporting composite data types in graph database
The invention relates to a method and device for supporting a composite data type in a graph database, and the method comprises the steps: creating N + 1 self-loop affiliated edges on a first graph element when the first attribute of the first graph element of the graph database is composite data, N...
Saved in:
Main Authors | , , , , , , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
12.07.2022
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention relates to a method and device for supporting a composite data type in a graph database, and the method comprises the steps: creating N + 1 self-loop affiliated edges on a first graph element when the first attribute of the first graph element of the graph database is composite data, N being greater than the number of elements of the composite data; each affiliated edge on the first graph element is in one-to-one correspondence with the element of the composite data, the rank value of the affiliated edge is the ranking value of the corresponding element in the composite data, and the attribute comprises the real numerical value of the corresponding element. On the premise of not sacrificing the performance of the graph database, the attributes in the graph database can support the composite data type.
本发明涉及一种在图数据库中支持复合数据类型方法及装置,其方法包括:当图数据库的第一图要素的第一属性为复合数据时,在第一图要素上创建N+1个自环的附属边,N大于复合数据的元素个数;将第一图要素上的每一条附属边与复合数据的元素一一对应,附属边的rank值为对应元素在复合数据中的排序值,且属性包括对应元素的真实数值。本发明能在不牺牲图数据库性能的前提下,使得图数据库中的属性能够支持复合数据类型。 |
---|---|
Bibliography: | Application Number: CN202210647635 |