Optimizing execution of a database query by using the partitioning schema of a partitioned object to select a subset of partitions from another partitioned object
Abstract
One embodiment of the present invention provides a system that optimizes the execution of a database query involving a target partitioned-database-object. During system operation, the database receives a query. If the query has a predicate that includes a partition-mapping function that uses the partitioning schema of a partitioned database-object and a list of columns from one or more tables to express a mapping of the list of column values to the partitions of the partitioned database-object, the system determines the compatibility of the partitioning schemas of the target partitioned-database-object and the partitioned database-object. Next, if the partitioning schemas are compatible, and if the list of columns is compatible with the partitioning keys of the target partitioned-database-object and the partitioned database-object, the system attempts to identify a subset of partitions in the target partitioned-database-object that satisfy the predicate. Finally, if a subset of partitions is successfully identified, the system performs the query only on the identified subset of partitions, and not on the other partitions, thereby optimizing the execution of the query by reducing th
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 26 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for optimizing an execution of a database query, the method comprising: receiving the database query for querying data in a target partitioned database-object; wherein the database query includes a predicate which includes a partition-mapping function that is a partitioned table; wherein the partition-mapping function's input parameters includes: a second partitioned database-object which is separate from the target partitioned database-object, and a list of columns in the target partitioned database-object; determining whether the target partitioned database-object's partitio
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (26)
Non-Patent Literature (5)
- Chaudhuri, Surajit, "An Overview of Query Optimization in Relational Systems", PODS '98, Seattle, WA, (C) 1998, pp. 34-43.
- Goldstein, Jonathan, et al., "Optimizing Queries Using Materialized Views: A Practical, Scalable Solution", SIGMOD 2001, Santa Barbara, CA, May 21-24, 2001, pp. 331-342.
- He, Bin, et al., "Statistical Schema Matching Across Web Query Interfaces", SIGMOD 2003, San Diego, CA, Jun. 9-12, 2003, pp. 217-228.
- Mendelzon, Alberto O., et al., "Concise Descriptions of Subsets of Structured Sets", PODS 2003, San Diego, CA, Jun. 9-12, 2003, pp. 123-133.
- Rao, Jun, et al., "Automating Physical Database Design in a Parallel Database", ACM SIGMOD 2002, Madison, WI, Jun. 4-6, 2003, pp. 558-569.