Data redistribution method and device, equipment and storage medium
A redistribution and data technology, applied in the database field, can solve the problems affecting the overall efficiency, time-consuming, complicated process, etc., and achieve the effect of simple and efficient technical effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0081] figure 1 A flowchart of a data redistribution method is provided for Embodiment 1 of the present invention. This embodiment can be applied to the situation where two or more sensors are used for target tracking. The method can be executed by a data redistribution device. The data redistribution apparatus can be implemented in the form of hardware and / or software, and the data redistribution apparatus can be configured in an electronic device. like figure 1 As shown, the method includes:
[0082] S110. Determine the tablespace to be migrated, the source node where the tablespace to be migrated is located, and the target node to be migrated.
[0083] In a database, a table space (Table Space, TS) consists of one or more data files. All objects in the database are logically stored in the table space, and physically stored in the data files of the table space to which they belong. A tablespace can be used as a movable unit of data to quickly migrate subtables between dat...
Embodiment 2
[0106] figure 2 This is a flowchart of a data redistribution method provided in Embodiment 2 of the present invention, and this embodiment is a refinement of the foregoing embodiment S130. like figure 2 As shown, the method includes:
[0107] S210. Determine the tablespace to be migrated, the source node where the tablespace to be migrated is located, and the target node to be migrated.
[0108] In this embodiment, when the number of data storage nodes changes, node data in the distributed system needs to be migrated, that is, redistributed.
[0109] Optionally, according to the executed SQL statement, the tablespace to be migrated, the source node where the tablespace to be migrated is located, and the target node to be migrated can be determined.
[0110] S220. Copy the data files in the tablespace to be migrated to the target node.
[0111] In this embodiment, according to the known tablespace to be migrated and the corresponding target node, the tablespace to be migr...
Embodiment 3
[0128] image 3 This is a schematic structural diagram of a data redistribution apparatus provided in Embodiment 3 of the present invention. like image 3 As shown, the apparatus includes: a tablespace to be migrated and a source node and target node determination module 310 , a data file copying module 320 and a log file sending and replaying module 330 .
[0129] The tablespace to be migrated and the source node and target node determination module 310 is configured to determine the tablespace to be migrated, the source node where the tablespace to be migrated is located, and the target node to be migrated.
[0130] The data file copying module 320 is configured to copy the data files in the tablespace to be migrated to the target node.
[0131] Optionally, the data file copying module 320 is also used for:
[0132] Block the tablespace to be migrated and each table in the tablespace to be migrated; obtain the definition of the tablespace to be migrated on the source node...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


