{"pub_number":"US12373434B2","doc_number":"12373434","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Heuristic database querying with dynamic partitioning","abstract_text":"Dynamic partitioning of a search space of queries is implemented for flexible, heuristic database querying. Search space partitioning refers to dividing the search space for a submitted query into smaller parts by augmenting the queries to append thereto an additional predicate comprising a dynamic partition key and a value(s) selected based on heuristics (e.g., recency and/or relevancy of the value(s)). A plurality of candidate augmentations of the query and corresponding query plans are generated and evaluated based on additional heuristics to determine which can be executed to yield the best results in terms of result quality and latency. This query plan is selected and executed for retrieval of results that satisfy the query, with pagination utilized for presentation of the results. The procedure of generating candidate query plans, selecting one of the candidates for execution, and paginating results is repeated until a search termination criterion is satisfied.","claims":[{"number":1,"text":"A method comprising: based on submission of a first query to a database, logically partitioning a search space of the database into a plurality of partitions for execution of the first query, wherein logically partitioning the search space comprises, for each of the plurality of partitions, determining the partition of the search space, wherein determining the partition of the search space comprises selecting one or more values of a first key from a set of unsearched values of the first key based on first heuristics; augmenting the first query with the first key and the one or more values of the first key to generate an augmented query, wherein augmenting the first query with the first key and the one or more values of the first key comprises appending, to the first query, the first key and the one or more values of the first key; based on executing the augmented query, obtaining a subset of results of the first query, wherein the subset of results comprise data of resources maintained","independent":true},{"number":2,"text":"The method of claim 1, wherein appending, to the first query, the first key and the one or more values of the first key comprises appending to the first query a predicate or clause comprising the first key and the one or more values of the first key.","independent":false,"depends_on":[1]},{"number":3,"text":"The method of claim 1, wherein determining the partition of the search space further comprises, determining a plurality of candidate partitions of the search space; generating a plurality of query plans corresponding to the plurality of candidate partitions, wherein the plurality of query plans comprises a first query plan corresponding to the partition of the search space; evaluating the plurality of query plans; and selecting the first query plan from the plurality of query plans for execution.","independent":false,"depends_on":[1]},{"number":4,"text":"The method of claim 3, wherein determining the plurality of candidate partitions comprises, for each of the plurality of candidate partitions, selecting one or more unsearched values of the first key from the set of unsearched values based on the first heuristics, and wherein generating the plurality of query plans comprises generating the plurality of query plans for a plurality of augmented queries corresponding to the plurality of candidate partitions.","independent":false,"depends_on":[3]},{"number":5,"text":"The method of claim 3, wherein evaluating the plurality of query plans comprises computing heuristic scores for the plurality of query plans based on second heuristics, and wherein selecting the first query plan is based on determining that the first query plan has a best one of the heuristic scores.","independent":false,"depends_on":[3]},{"number":6,"text":"The method of claim 5, wherein computing the heuristic scores for the plurality of query plans based on the second heuristics comprises, for each query plan of the plurality of query plans and corresponding candidate partition of the plurality of candidate partitions, computing a heuristic score based on at least one of an estimated number of records to be searched associated with the query plan, an estimated execution time associated with the query plan, and a quantitative relation between active and deleted resources that correspond to the candidate partition.","independent":false,"depends_on":[5]},{"number":7,"text":"The method of claim 1, wherein the database stores resources allocated to an end user by a Software-as-a-Service (SaaS) application vendor or a cloud service provider (CSP), wherein the first query corresponds to the end user.","independent":false,"depends_on":[1]},{"number":8,"text":"The method of claim 7, wherein selecting the one or more values of a first key based on the first heuristics comprises determining the one or more values that correspond to at least one of most recent or current ones of the resources based on updates to the database and most relevant ones of the resources based on quantities of resources associated with the one or more values.","independent":false,"depends_on":[7]}],"description":"BACKGROUND\nThe disclosure generally relates to digital data processing (e.g., CPC class G06F) and to information retrieval, database structures therefor, and file system structures therefor (e.g., CPC subclass G06F 16/00).\nResources of a cloud service provider (CSP) or Software-as-a-Service (SaaS) application provider can be represented with structured data for consumption by third party services, such as security providers. When resources of the CSP or SaaS application provider are represented in this manner, third party services are able to retrieve the structured data representing the resources provisioned to a particular end user (e.g., an account or group of accounts under the same tenant) to perform analysis or monitoring of the resources for the end user. Generally, CSPs and SaaS application providers expose an application programming interface (API) that can be invoked for retrieval of the structured data. Analysis or monitoring of cloud or SaaS application resources is commonly implemented through querying the collection of structured data representing the resources that the third party service has obtained from the CSP or SaaS application provider via the corresponding API.\nBRIEF DESCRIPTION OF THE DRAWINGS\nAspects of the disclosure may be better understood by referencing the accompanying drawings.\nFIG.\n1\nis a conceptual diagram of heuristic query processing to partition a search space and utilizing pagination for returned results.\nFIG.\n2\nis a conceptual diagram that depicts augmenting submitted queries heuristic database querying in additional detail.\nFIG.\n3\nis a flowchart of example operations for preprocessing queries submitted to a database based on criteria for heuristic query processing.\nFIG.\n4\nis a flowchart of example operations for heuristically partitioning a search space for query execution and paginating results.\nFIG.\n5\nis a flowchart of example operations for augmenting a submitted query based on heuristics to partition a search space.\nFIG.\n6\n","inventors":[{"name":"Chandra Biksheswaran Mouleeswaran","slug":"chandra-biksheswaran-mouleeswaran","city":"Cupertino","country":"US"},{"name":"Amit Agarwal","slug":"amit-agarwal","city":"Cupertino","country":"US"},{"name":"Prashant Kumar Pathak","slug":"prashant-kumar-pathak","city":"San Jose","country":"US"},{"name":"Xiaoyan Wang","slug":"xiaoyan-wang","city":"Pleasanton","country":"US"}],"assignees":[{"name":"Palo Alto Networks, Inc.","slug":"palo-alto-networks-inc","country":"US"}],"examiners":[],"cpc_codes":["G06F 16/24542","G06F 16/2455","G06F 16/2471"],"ipc_codes":["G06F 16/2453","G06F 16/2455","G06F 16/2458"],"filing_date":"2024-02-13","pub_date":"2025-07-29","grant_date":"2025-07-29","expiration_date":"2044-02-13","family_members":[],"citations_made":[{"pub_number":"US8086598B1","category":"applicant"},{"pub_number":"US8126870B2","category":"examiner"},{"pub_number":"US8977600B2","category":"examiner"},{"pub_number":"US9734180B1","category":"examiner"},{"pub_number":"US20100121839A1","category":"examiner"},{"pub_number":"US20100281013A1","category":"examiner"},{"pub_number":"US20160335274A1","category":"examiner"},{"pub_number":"US20170039232A1","category":"examiner"},{"pub_number":"US20190197163A1","category":"examiner"},{"pub_number":"US20200134081A1","category":"examiner"}],"non_patent_literature":[],"drawings_count":0,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":10,"npl_citations":0,"citations_per_year":0.0,"pagerank":0.0,"citation_rank":3483924,"pagerank_rank":3483924,"velocity_rank":3483924,"family_citations":0}}