Processing method for changing time-series database table structure
AssigneeTaos Data
InventorsHongze CHENG, Shengliang GUAN, Haojun LIAO, Jianhui TAO
Life of this patent
Estimating the term…
Loading patent…
AssigneeTaos Data
InventorsHongze CHENG, Shengliang GUAN, Haojun LIAO, Jianhui TAO
Estimating the term…
The invention discloses a processing method for process changing time-series database table structure, wherein comprising following steps: an application side generates a data table containing a table name ID, a schema version, and a column ID; when a data column is increased, the application side modifies a schema of the data table, increases the schema version, assigns a new column ID number to a newly increased column incrementally, and assigns a default value to the newly increased column; according to a data insertion request of the application side, a data node receives data of a schema version carrying a data table from the application side and writes the received data, wherein writing the received data comprises: storing the schema version of the data table carried by data from the application side by the data node, and writing the received data, and writing the received data; when the data node receives new data from the application side, comparing the schema version of the data table carried by the new data with a stored schema version of the same data table; and the data node writes data according to the comparison result. According to the method, the operation of changing the structure of a table can be completed instantly, the historical data does not need to be changed, new and old table structure definitions can be used in parallel, and the flexibility can be improved.
A processing method for changing time-series database table structure, wherein comprising the following steps:
Dependencies are inferred from the claim text.