Data scrubbing method and apparatus, and computer readable storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorYuesen LI
Life of this patent
Estimating the term…
Loading patent…
AssigneeTencent Technology (Shenzhen) Company Limited
InventorYuesen LI
Estimating the term…
This application belongs to the field of database application technologies, and discloses a data scrubbing method and apparatus. In the method, a server adds a share update exclusive lock to a target table, to prevent a system from performing a data definition language (DDL) operation on the target table. The server then creates a temporary table and a temporary index, copies data from the target table to the temporary table, and generates index information according to the data in the temporary table. Next, the server adds an access exclusive lock to the target table to prevent the system from performing a data manipulation language (DML) operation on the target table. Then data in the target table and the temporary table as well as corresponding index information is exchanged, thereby completing cleaning and reclaiming of disk space.
A data scrubbing method performed at a server having one or more processors and memory storing a plurality of programs to be executed by the one or more processors, the method comprising:
The method according to claim 0, wherein the copying, by the server, data from the target table to the temporary table, and generating index information in the temporary index according to the data in the temporary table comprises:
A server comprising:
A non-transitory computer readable storage medium storing a plurality of machine readable instructions in connection with a server having one or more processors, wherein the plurality of machine readable instructions, when executed by the one or more processors, cause the server to perform a plurality of operations including:
Dependencies are inferred from the claim text.