Data table division method and device, electronic equipment and storage medium
The embodiment of the invention provides a data table dividing method and device, electronic equipment and a storage medium, and belongs to the technical field of artificial intelligence. The method comprises the steps that the total data amount and growth data of storage data are acquired from a ta...
Saved in:
Main Authors | , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
11.06.2024
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The embodiment of the invention provides a data table dividing method and device, electronic equipment and a storage medium, and belongs to the technical field of artificial intelligence. The method comprises the steps that the total data amount and growth data of storage data are acquired from a target database; wherein the storage data comprises a hash field; calculating the number of sub-tables of the target database according to the total data amount and the growth data; constructing a data sub-table according to the sub-table quantity and a preset target sub-table structure; calculating a hash value of the hash field to obtain a target hash value; and distributing the storage data to the data sub-tables according to the number of the sub-tables and the target hash value. According to the embodiment of the invention, the expansibility of the data sub-table can be improved.
本申请实施例提供了一种数据分表方法和装置、电子设备及存储介质,属于人工智能技术领域。该方法包括:从目标数据库获取存储数据的数据总量及增长数据;其中,所述述存储数据包括哈希字段;根据所述数据总量及所述增长数据,计算所述目标数据库的分表数量;根据所述分表数量及预设的目标分 |
---|---|
Bibliography: | Application Number: CN202410212148 |