A method and device for realizing data aggregation based on clickhouse and java
By using ClickHouse to generate materialized views and Java scheduled tasks to handle special metrics, the problem of low query response efficiency under large data volumes is solved, and efficient metric calculation and storage are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WUHAN GREENET INFORMATION SERVICE
- Filing Date
- 2023-12-22
- Publication Date
- 2026-06-26
AI Technical Summary
In existing technologies, query response efficiency for indicators with large data volumes and special calculation requirements is low, and they cannot be implemented solely through SQL at the database layer. Instead, they require Java program logic to perform indicator calculations.
ClickHouse is used to generate materialized view database operation instructions, static feature items and cumulative item execution code are added, and analysis code for generating special result items is combined with Java program. Special result items are processed through scheduled tasks to reduce indicator writing latency. Combined with Java scheduled tasks, it can make up for the indicator generation that materialized views cannot complete.
It effectively reduced the query response latency of indicators, improved query efficiency, and solved the query response efficiency problem of special calculation indicators under large data volumes.
Smart Images

Figure CN117785922B_ABST