Invention Grant
- Patent Title: Bi-gram cardinality estimation in a graph database
-
Application No.: US18073292Application Date: 2022-12-01
-
Publication No.: US11748362B2Publication Date: 2023-09-05
- Inventor: Niels de Jong , James Webber
- Applicant: Neo4j Sweden AB
- Applicant Address: US CA San Mateo
- Assignee: Neo4j Sweden AB
- Current Assignee: Neo4j Sweden AB
- Current Assignee Address: US CA San Mateo
- Agency: Van Pelt, Yi & James LLP
- Main IPC: G06F16/2458
- IPC: G06F16/2458 ; G06F16/248 ; G06F16/28 ; G06F16/2453

Abstract:
A method and apparatus for estimating the cardinality of graph pattern queries using graph statistics and metadata is presented. In various embodiments, node and edge labels are used to compute estimates for graph patterns (bi-grams) and the estimates for these patterns as composed to provide cardinality estimates of longer paths. The computation of bi-grams is low cost and requires only minimal changes to the existing query planner in the existing database machinery to be useful. The resulting estimates are used during query execution to minimize the amount of work needed to complete a query and return a faithful and accurate answer to the user. The apparatus includes modules containing computer-executable instructions to perform the above method.
Public/Granted literature
- US20230111646A1 BI-GRAM CARDINALITY ESTIMATION IN A GRAPH DATABASE Public/Granted day:2023-04-13
Information query