CPC G06F 16/24554 (2019.01) [G06F 16/24539 (2019.01)] | 20 Claims |
1. A method comprising:
identifying a definition of a materialized view that contains a result of a particular query, wherein the definition indicates one or more columns of one or more base tables;
based on the definition, identifying a plurality of candidate partitioning schemes;
generating a query that indicates one or more candidate partitioning schemes in the plurality of candidate partitioning schemes;
executing the query, wherein executing the query results in one or more partition counts, each corresponding to a different candidate partitioning scheme of the one or more candidate partitioning schemes;
based on the one or more partition counts, selecting a candidate partitioning scheme from among the plurality of candidate partitioning schemes;
automatically partitioning the materialized view based on the candidate partitioning scheme;
storing the partitioned materialized view on physical storage media;
wherein the method is performed by one or more computing devices.
|