A method and system and apparatus for stream aggregation in a database
By establishing mapping relationships and dynamically replacing query plans in the openGauss database, streaming aggregation functionality was implemented, solving the problem that openGauss does not support multi-stage aggregation, and achieving efficient streaming aggregation computation and real-time data processing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-07
- Publication Date
- 2026-07-10
AI Technical Summary
The existing openGauss database does not support multi-stage aggregation mechanisms, which makes it impossible to directly port streaming aggregation plugins and meet the needs of real-time data processing. Furthermore, existing solutions cannot guarantee low latency and continuous computing capabilities in streaming computing scenarios.
By establishing a mapping relationship between the original aggregation function and the preliminary aggregation function, the merged aggregation function, and the final calculation function in the openGauss database, and dynamically replacing the query plan using a plug-in approach, streaming aggregation functionality is achieved. This includes creating a materialized table to store intermediate states and performing multi-stage splitting and replacement of functions during data writing and querying.
Without modifying the database kernel, streaming aggregation functionality is implemented, reducing deployment difficulty and maintenance costs, supporting efficient incremental computing, reducing storage overhead, and maintaining the transparency and ease of use of streaming view queries, while possessing good compatibility and scalability.
Smart Images

Figure CN122364273A_ABST
Abstract
Citation Information
Patent Citations
Intermediate result storage and transparent replacement method and device for asynchronous materialized view and electronic equipment
CN120179692A