The invention relates to the technical field of databases, and particularly provides a streaming computing method and device for a
distributed database, and the method comprises the following steps: S1, receiving
time sequence data change captured by a CDC component in real time, and storing the
time sequence data change in a local cache; s2, performing
stream aggregation calculation of
stream calculation; s3, receiving a calculation result of
stream calculation, converting a
result set into a target table compatible format, and writing data into a target table by using an internal
actuator; s4,
processing existing historical data during stream calculation creation,
breakpoint data generated during a stream calculation pause period and expired data exceeding a
time sequence data out-of-order window; and S5, managing the life cycle of the flow calculation in the
distributed database cluster. Compared with the prior art, the method has the advantages that the streaming calculation of the
time series data of the
database can be efficiently completed, the recalculation of the window split data is efficiently completed by using the streaming calculation recalculation module, and the performance attenuation is within 15% of the original storage performance.