Check patentability & draft patents in minutes with Patsnap Eureka AI!

Data query and synchronization optimization method and device

A data query and optimization method technology, applied in the field of data processing, can solve problems such as cost, complicated import operation, and inability to guarantee data timeliness

Active Publication Date: 2021-05-11
内蒙古蒙商消费金融股份有限公司
View PDF17 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] This application provides a data query and synchronization optimization method and device to solve the problem that the timeliness of data cannot be guaranteed in the prior art, and the files used to import data need space storage, and the import operation is relatively complicated, which may require artificial costs. question

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 query and synchronization optimization method and device
  • Data query and synchronization optimization method and device
  • Data query and synchronization optimization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0062] refer to figure 1 , which shows a flow chart of the steps of a data query and synchronization optimization method provided by an embodiment of the present application, as shown in figure 1 As shown, the data query and synchronization optimization method may specifically include the following steps:

[0063] Step 101: Obtain the query statement input by the user.

[0064] The embodiment of the present application may be applied in a scene where the virtual subgraph pair is used to query the graphics data stored in the hard disk data.

[0065] In practical applications, graph data is data stored in the form of nodes and edges (ie relationships).

[0066] The query statement refers to the statement entered by the user to query the graph theory data. In this example, the query statement may be a cypher statement, and cypher is a descriptive graph query language that allows expressive and efficient query of graph storage without writing graph structure traversal codes.

...

Embodiment 2

[0096] refer to figure 2 , showing a flow chart of steps of another data query and synchronization optimization method provided by the embodiment of the present application, as shown in figure 2 As shown, the data query and synchronization optimization method may specifically include the following steps:

[0097] Step 201: Create multiple graph databases; the multiple graph databases form the graph database cluster.

[0098] The embodiment of the present application may be applied in a scene where the virtual subgraph pair is used to query the graphics data stored in the hard disk data.

[0099] In this embodiment, multiple graph databases may be created in advance, and multiple graph databases may form a graph database cluster.

[0100] After creating multiple graph databases, you can also set the multi-write mechanism corresponding to multiple graph databases. After receiving the written data through the multi-write mechanism, the data can be written to multiple graph da...

Embodiment 3

[0162] refer to Figure 4 , which shows a schematic structural diagram of a data query and synchronization optimization device provided by an embodiment of the present application, as shown in Figure 4 As shown, the data query and synchronization optimization device 300 may specifically include the following modules:

[0163] Query statement acquiring module 310, configured to acquire the query statement input by the user;

[0164] An analysis result acquisition module 320, configured to analyze the query statement to obtain an analysis result corresponding to the query statement;

[0165] A target graph database determining module 330, configured to determine the target graph database in the graph database cluster matching the query statement according to the parsing result;

[0166] A target virtual subgraph query module 340, configured to route the query statement to the target graph database, and obtain a target virtual subgraph matching the query statement from the targe...

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 data query and synchronization optimization method and device. The method comprises the following steps: acquiring a query statement input by a user; analyzing the query statement to obtain an analysis result corresponding to the query statement; according to the analysis result, determining a target graph database in a graph database cluster matched with the query statement; routing the query statement to the target graph database, and querying from the target graph database to obtain a target virtual sub-graph matched with the query statement; according to the target virtual sub-graph, querying to obtain target sub-graph data corresponding to the target virtual sub-graph; and after a write-in operation for a to-be-written virtual sub-graph is received, writing the to-be-written virtual sub-graph into each graph database in the graph database cluster according to a multi-write mechanism. According to the embodiment of the invention, the virtual sub-graphs are established and stored in the graph database, so that the data query speed is increased, the labor is saved, and the real-time effectiveness of the data is ensured.

Description

technical field [0001] The present application relates to the technical field of data processing, in particular to a data query and synchronization optimization method and device. Background technique [0002] With the development of the company's anti-fraud business, graphs play an increasingly important role in it. Not only must it support the output of real-time variable results, but it is now planned to increase the calculation of some offline complex relationships to provide more reference feature values ​​for decision-making. . [0003] Since the calculation speed of the map is limited by the amount of data, if the amount of data is too large, the map may be queried and crashed, resulting in inaccessibility. With the current configuration of the online map server, if the calculation of offline complex relationships will crash the map query, online The real-time business of the company will be affected, leading to the paralysis of the company's entire business line, an...

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
IPC IPC(8): G06F16/901G06F16/9032
CPCG06F16/9024G06F16/9032Y02D10/00
Inventor 张莎何建芳王聪
Owner 内蒙古蒙商消费金融股份有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More