Graph database traversal method, device, equipment and storage medium
A graph traversal and database technology, applied in the field of intelligent search, can solve the problems of low query efficiency of target elements and low utilization of system resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] Figure 1A It is a flowchart of a graph database traversal method in the first embodiment of the application. The embodiment of the present application is applicable to the situation of data traversal in the graph database. The method is executed by the graph database traversal device, which uses software and / or hardware Realized, and specifically configured in an electronic device with a certain data computing capability.
[0060] Such as Figure 1A A graph database traversal method shown, including:
[0061] S101. Obtain the input graph traversal statement, determine at least two operators included in the graph traversal statement and the execution order of each operator, allocate threads to each operator, and create a buffer for each two adjacent operators queue.
[0062] Wherein, the acquisition of the graph traversal statement can be realized by the user running the written graph traversal statement. Wherein, the graph traversal statement includes at least two op...
Embodiment 2
[0084] figure 2 It is a flow chart of a graph database traversal method in Embodiment 2 of the present application. This embodiment of the present application is optimized and improved on the basis of the technical solutions of the foregoing embodiments.
[0085] Furthermore, in the graph database traversal method, the following operation is added: "according to the execution order of each operator, transfer the token data between the threads corresponding to each operator, so that the thread that receives the token data starts to execute the corresponding The operation of the operator, and the token data is passed to the thread corresponding to the next operator", so as to associate and trigger the start of the thread corresponding to the next operator.
[0086] Such as figure 2 A graph database traversal method shown, including:
[0087] S201. Obtain the input graph traversal statement, determine at least two operators included in the graph traversal statement and the ex...
Embodiment 3
[0100] Figure 3A It is a flow chart of a graph database traversal method in Embodiment 3 of the present application. This embodiment of the present application is optimized and improved on the basis of the technical solutions of the foregoing embodiments.
[0101] Further, in the graph database traversal method, the following operation is added: "When the thread corresponding to any target operator other than the first operator determines that the execution termination condition of the operator is met, perform a preset operation to notify any The thread corresponding to each operator before the target operator terminates the operation of the corresponding operator" to eliminate a large number of invalid calculations.
[0102] Such as Figure 3A A graph database traversal method shown, including:
[0103] S301. Obtain the input graph traversal statement, determine at least two operators contained in the graph traversal statement and the execution order of each operator, allo...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com