Unlock instant, AI-driven research and patent intelligence for your innovation.

Query method, query device and query system

A query method and query request technology, applied in the computer field, can solve problems such as poor query performance and the inability of the community version to implement a cluster solution.

Inactive Publication Date: 2020-05-19
BEIJING MININGLAMP SOFTWARE SYST CO LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

And its community version is open source and free, but the community version cannot implement cluster solutions
If a large amount of data is queried based on the existing stand-alone Neo4j method, the query time will take at least 1 minute, making the query performance poor

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
  • Query method, query device and query system
  • Query method, query device and query system
  • Query method, query device and query system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] Such as figure 1 As shown, this embodiment provides a query method, which includes:

[0050] Step S101: When a query request is received, determine the amount of data corresponding to the query information according to the query information carried in the query request;

[0051] Step S102: Determine whether the amount of data is greater than or equal to a set threshold value, and if the amount of data is greater than or equal to the set threshold value, divide the query request into multiple groups according to the amount of data corresponding to the query information. Subquery requests;

[0052] The multiple sub-query requests are sent to the graph database for query.

[0053] Optionally, the dividing the query request into multiple sub-query requests according to the amount of data corresponding to the query information may include:

[0054] Dividing the query request into N first sub-query requests, so that the total data volume corresponding to the N first sub-query requests...

example 1

[0091] Such as Figure 5 As shown, the system architecture of this example includes a query device and a graph database server, where the function of the query device can be implemented by a Web load balancer, multiple business systems, graph computing cluster loads, and a graph query engine. The function of the database server can be implemented by Neo4j load balancer and multiple Neo4j instances.

[0092] Among them, the Web load balancer is used to distribute the received query request to the business system;

[0093] The business system is used to determine the amount of data corresponding to the query request according to the query request, and split the query request into multiple first sub-query requests according to the number, and then distribute the query request to the graph computing engine through the graph computing cluster;

[0094] The graph calculation engine is used to split each first sub-query request twice into multiple second sub-query requests, and then request...

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 provides a query method, a query device and a query system. The method comprises the following steps: determining the data size corresponding to query information according to the queryinformation carried by a query request when the query request is received; judging whether the data size is greater than or equal to a preset quantity threshold value or not, and dividing the query request into a plurality of sub-query requests according to the data size corresponding to the query information if the data size is greater than or equal to the preset quantity threshold value; and sending the plurality of sub-query requests to a graph database for query. The data query speed and performance can be effectively improved.

Description

Technical field [0001] The present invention relates to the field of computers, in particular to a query method and device. Background technique [0002] Neo4j is a kind of graph database, which is easy to install, mature and robust in the community. And its community version is open source and free, but the community version cannot implement the cluster solution. If a large data volume query is performed based on the existing stand-alone Neo4j method, the query time will take at least 1 minute, which makes the query performance poor. Summary of the invention [0003] The technology to be solved by this application is to provide a query method, device and system, which can improve the speed and performance of data query. [0004] In order to solve the above technical problems, this application provides a query method, which includes: [0005] When a query request is received, determine the amount of data corresponding to the query information according to the query information carr...

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 BEIJING MININGLAMP SOFTWARE SYST CO LTD