Method, system and equipment for batch migration of big data tables between databases and medium
A database and data table technology, applied in the computer field, can solve problems such as data importing into the database and data migration failure, etc., and achieve the effect of flexibly migrating file size control methods, reducing workload, and realizing batchization.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] This embodiment provides a method for batch migration of large data tables between databases, including:
[0038] Step 1. Generate a corresponding configuration file according to the data table to be migrated, the configuration file includes at least one row, and each row corresponds to 10 configuration columns, and each configuration row is: source database, source database table Name, source encoding method, target database, target database data table name, target database encoding method, migration method, migration basis field, start value, and end value;
[0039] Step 2. Read the configuration file cyclically and perform batch migration of data tables; after each migration process is completed, according to the configuration file's source database table name, target database data table name, migration method, migration basis field, start value and end value , Generate the query SQL script for the number of records in the data table, respectively obtain the number o...
Embodiment 2
[0044] In this embodiment, a system for batch migration of large data tables between databases is provided, including:
[0045] The setting module generates a corresponding configuration file according to the data tables to be migrated, the configuration file includes at least one row, and each row corresponds to 10 configuration columns, and each configuration row is: source database, source database table Name, source encoding method, target database, target database data table name, target database encoding method, migration method, migration basis field, start value, and end value;
[0046] The migration module reads the configuration file cyclically and performs batch migration of data tables; after each migration process is completed, according to the configuration file's source database table name, target database data table name, migration method, migration basis field, start value and end value , Generate the query SQL script for the number of records in the data tabl...
Embodiment 3
[0052] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, any implementation manner in Embodiment 1 can be implemented.
[0053] Since the electronic device introduced in this embodiment is the device used to implement the method in Embodiment 1 of this application, based on the method described in Embodiment 1 of this application, those skilled in the art can understand the electronic device of this embodiment. Specific implementation methods and various variations thereof, so how the electronic device implements the method in the embodiment of the present application will not be described in detail here. As long as a person skilled in the art implements the equipment used by the method in the embodiment of the present application, it all belongs to the protection scope of the present application.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com