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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


