Graph data storage method and device, graph data processing method and device and computer storage medium

A graph data and edge data technology, applied in special data processing applications, other database retrieval, other database indexing, etc., can solve problems affecting computing node computing performance, graph data occupancy, large memory space, etc.

Active Publication Date: 2021-01-29
HANGZHOU HIKVISION DIGITAL TECH
View PDF6 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this scenario, if the storage space occupied by the ID of the vertex is large, the storage space occupied by the key value of the vertex itself and the key value of the edge corresponding to the vertex is relatively large.
In this way, the graph data loaded into the memory will occupy a large memory space, thereby affecting the computing performance of the computing nodes

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Graph data storage method and device, graph data processing method and device and computer storage medium
  • Graph data storage method and device, graph data processing method and device and computer storage medium
  • Graph data storage method and device, graph data processing method and device and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0095] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the following will further describe the embodiments of the present application in detail in conjunction with the accompanying drawings.

[0096] Before explaining the embodiment of the present application in detail, the application scenario of the embodiment of the present application is explained first.

[0097] In order to improve the data processing speed of the graph database, the current graph database is usually a graph database based on a distributed storage system. Wherein, the distributed storage system includes multiple nodes, and each node is used to store part of graph data in the graph database. The distributed storage system can also be called a clustered storage environment.

[0098] In addition, in order to facilitate the management of the graph data stored on the nodes, the storage space of the nodes is divided into different partitio...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a graph data storage method and device, a graph data processing method and device and a computer storage medium, and belongs to the technical field of graph databases. The method comprises the steps of acquiring target vertex sequence numbers of target vertexes stored in a target partition, storing a plurality of vertexes in the target partition, wherein the vertexes correspond to the vertex sequence numbers respectively; obtaining a partition number of a partition where the other vertex of each edge in one or more edges associated with the target vertex is located, a vertex sequence number of the other vertex and the direction of each edge, and obtaining target edge data corresponding to the target vertex sequence number; and writing the target edge data into a side data file in the target partition, wherein the side data file is used for storing side data corresponding to each vertex sequence number. According to the embodiment of the invention, the partition numbers of the partitions where the vertexes are located and the vertex sequence numbers of the vertexes in the partitions are used as identifiers, so that the memory required for graph calculation is reduced, and the calculation performance of the calculation nodes is improved.

Description

technical field [0001] The embodiments of the present application relate to the technical field of graph databases, and in particular to a graph data storage and processing method, device, and computer storage medium. Background technique [0002] A graph database is a non-relational database that uses graphs such as vertices and edges to represent entities and the relationships between entities. Among them, a vertex in a graph database indicates an entity, and an edge between two vertices indicates a relationship between the two entities. Entities can represent objects in real life, and relations can represent the connections between different objects. The data stored in the graph database may be referred to as graph data, and the graph data includes vertex data and edge data. Among them, the data of the vertex is used to indicate the relevant information of the entity, and the data of the edge is used to indicate the relevant information of the relationship. In addition...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/901G06F16/903
CPCG06F16/9024G06F16/90335
Inventor 余利峰陈哲嘉
Owner HANGZHOU HIKVISION DIGITAL TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products