摘要 |
Embodiments of the present invention provide a method for updating a data table of a KeyValue database, including: receiving a full data updating instruction, acquiring to-be-imported data according to the full data updating instruction, and generating a full data updating file according to the to-be-imported data; acquiring M rows of old data in a data table corresponding to the full data updating instruction, and generating a full data deleting file according to M RowKeys of the M rows of old data; importing the full data updating file into the data table; and importing the full data deleting file into the data table. According to the method for updating a data table of a KeyValue database provided in the embodiments of the present invention, full updating of a data table of a KeyValue database can be implemented, and an updating speed is fast and atomicity is better. The embodiments of the present invention further provide a related apparatus for updating table data. |