The invention provides a semantic-based migration and consistency
verification method,
system and device and a medium, and relates to the technical field of databases. The method comprises the following steps: performing
metadata topology scanning analysis by obtaining
metadata, including generating an
abstract syntax tree and constructing a semantic graph; according to a
metadata topology scanning analysis result, performing
data mapping and conversion, including loading a
YAML rule and generating corresponding type mapping and constraint conversion;
data migration is carried out through
primary key fragmentation parallel migration, batch writing optimization and real-time double-writing
verification; through structure-data-business three-layer
verification,
simulation business
SQL comparison and automatic difference repair, the integrity of migrated data and business compliance are ensured, the
semantic gap problem in heterogeneous
database migration is solved, high-precision and high-efficiency
database migration is realized, the migration efficiency is improved, and the
data migration efficiency is improved. The method is suitable for scenes with strict requirements on
data consistency and migration efficiency, such as financial, government affair and enterprise-
level data centers.