The application discloses a planning
processing method and
system for pre-aggregation calculation of a
time series database, belongs to the technical field of
time series databases, and aims to solve the technical problem of how to quickly query the aggregation calculation results of each collection point. The method comprises the following steps: obtaining a pre-aggregation calculation statement input by a user; calling a logical
execution plan generation interface of a parser to analyze the pre-aggregation calculation statement, analyzing the pre-aggregation calculation statement into a corresponding logical plan, and analyzing the
result type of the aggregation rule of the pre-aggregation calculation statement; creating a result table according to the obtained
result type, wherein the result table is used for storing the aggregation calculation results; calling an
execution plan generation interface of the parser to generate a general
execution plan based on the logical plan; clipping the execution plan to obtain a clipped execution plan; and matching the clipped execution plan with the result table and executing the result table.