Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data importing method and device for graph database

A data import and database technology, applied in the field of data processing, can solve the problems of data import and data import speed is not adjustable, and achieve the effect of facilitating performance tuning and speeding up data import.

Active Publication Date: 2019-08-09
南京星云数字技术有限公司
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problems of the prior art, an embodiment of the present invention provides a data import method and device for a graph database to overcome the need to first import the data into a csv format and import the data into the graph database in real time in the prior art. The speed cannot be adjusted, etc.

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
  • Data importing method and device for graph database
  • Data importing method and device for graph database
  • Data importing method and device for graph database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Some, but not all, embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0043] figure 1 is a flow chart of a data import method for a graph database shown according to an exemplary embodiment, refer to figure 1 As shown, the method includes the following steps:

[0044] S1: Register a custom spark udf function with the graph database program, so that the graph database establishes a connection with the spark resource through the spark ud...

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 invention discloses a data importing method and device for a graph database, and the method comprises the steps: registering a self-defined Spark udf function in a graph database program, and enabling the graph database to be connected with a Spark resource through the Spark udf function; creating a node attribute index in the graph database; inquiring a hive database by utilizing the spark resources to obtain inquired data; re-partitioning the queried data, and registering the re-partitioned data as a temporary data table; and importing the temporary data table into the graph database through the Spark udf function and the node attribute index. According to the method, the spark is combined with the graph database, real-time data import can be realized, the data does not need to be exported into a csv format. The Spark performance can be conveniently adjusted and the data import speed can be conveniently adjusted by utilizing the Spark technology, and by utilizing the concurrencycharacteristic of the Spark, the data import can be accelerated, and meanwhile, data loss is avoided.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a data import method and device for a graph database. Background technique [0002] Spark is a cluster and memory-based data processing technology. It can process a large amount of data through the combination of many machines, and can also be integrated with the graph computing framework to perform data computing operations. Spark can not only integrate in different ways, but also preprocess the data (including aggregation, filtering, transformation, etc.), and then import the preprocessed data into the graph database. [0003] In the existing technology center, there are usually the following ways to import data into the graph database: write create statement, Load CSV statement, Batch inserter, Batch import, Neo4j-import. Except for the create statement, the common feature of these methods is that the file needs to be exported to csv format first, which is very troubl...

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/51G06F16/53
CPCG06F16/51G06F16/53
Inventor 王波
Owner 南京星云数字技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products