OPTIMIZING GRAPH QUERIES BY PERFORMING EARLY PRUNING

    公开(公告)号:US20210216590A1

    公开(公告)日:2021-07-15

    申请号:US16738972

    申请日:2020-01-09

    Abstract: Techniques are described herein for early pruning of potential graph query results. Specifically, based on determining that property values of a path through graph data cannot affect results of a query, the path is pruned from a set of potential query solutions prior to fully exploring the path. Early solution pruning is performed on prunable queries that project prunable functions including MIN, MAX, SUM, and DISTINCT, the results of which are not tied to a number of paths explored for query execution. A database system implements early solution pruning for a prunable query based on intermediate results maintained for the query during query execution. Specifically, when a system determines that property values of a given potential solution path cannot affect the query results reflected in intermediate results maintained for the query, the path is discarded from the set of possible query solutions without further exploration of the path.

    SCOUTING QUERIES FOR IMPROVING QUERY PLANNING IN DISTRIBUTED ASYNCHRONOUS GRAPH QUERIES

    公开(公告)号:US20240184780A1

    公开(公告)日:2024-06-06

    申请号:US18073629

    申请日:2022-12-02

    CPC classification number: G06F16/24542 G06F16/9024

    Abstract: A graph processing system is provided for executing scouting queries for improving query planning. A query planner creates a plurality of scouting queries, each scouting query in the plurality of scouting queries corresponding to a query plan for a graph query and having an associated confidence value. A graph processing system performs limited execution of the plurality of scouting queries and determines a metric value for each scouting query in the plurality of scouting queries based on execution of the scouting query. The system determines a score for each scouting query in the plurality of scouting queries based on its metric value and the confidence value of the corresponding query plan and selects a query plan based on the scores of the plurality of scouting queries. The system executes the graph query based on the selected query plan.

Patent Agency Ranking