Flexible data migration method, device, storage medium and electronic device

By dynamically adjusting the transaction data migration time point and batch processing, the problem of insufficient data warehousing processing volume of the peripheral system within a limited time is solved, and the data processing efficiency and performance of the system are improved.

CN115098468BInactive Publication Date: 2024-10-29PING AN BANK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210752254.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the test environment, due to inconsistent business volumes on business dates in the peripheral system, the transaction data migration time was fixed, and the data warehousing processing volume could not be fully increased within a limited time, affecting system performance.

Method used

By obtaining the transaction data volume of the previous business date, we can flexibly determine the transaction data migration time point in the current business date year and month table, and dynamically adjust the migration time of transaction data from the natural date year and month table to the business date year and month table in batches. Process data to improve processing efficiency.

Benefits of technology

It increases the data storage processing capacity of the peripheral system within a limited time, avoids data processing delays caused by waiting, and enhances the system's processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115098468B_ABST
    Figure CN115098468B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a flexible data migration method, device, storage medium and electronic device, the method comprising: obtaining a first business date year-month table corresponding to the previous business date; obtaining first transaction data from the first business date year-month table; judging the data volume of the first transaction data; based on the data volume, determining the migration time for migrating the second transaction data after the first natural day time in the current business date year-month table to the second business date year-month table corresponding to the target business date after the previous business date; migrating the second transaction data in the current business date year-month table to the second business date year-month table corresponding to the target business date after the previous business date based on the migration time; receiving a data file sent by the core system after accounting processing of the second transaction data, and accounting processing of the second transaction data in the second business date year-month table according to the information in the file, to complete the joint debugging test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a flexible data migration method, device, storage medium and electronic device. Background Art

[0002] In the test environment, the peripheral system automatically obtains the current business date of the core system at fixed time intervals and writes it into the parameter file to generate the current business date year-month table; then obtains the current business date year-month table corresponding to the current business date from the parameter file, as well as the current natural date year-month table that records the transaction data of all transaction days. Then, at fixed time intervals, the transaction data is migrated from the current natural date year-month table to the current business date year-month table, and then the data file sent by the core system after the transaction data is entered into the account is received. According to the information in the data file, the transaction data in the current business date year-month table is entered into the warehouse to complete the joint debugging test.

[0003] Among them, since the business volume corresponding to each business date may be different, some business dates have more business volume, and some business dates have less business volume. If a fixed time period is set in advance, and the transaction data is migrated from the current natural date year-month table to the current business date year-month table for storage processing every fixed time period, a situation will occur, that is, when the business volume of a certain business date is small, the peripheral system will process it quickly, but because the fixed time period has not yet arrived, the transaction data in the current natural date year-month table has not been moved to the current business date year-month table corresponding to the next business date, resulting in the peripheral system being unable to store the transaction data in the next current business date year-month table and waiting. However, in the test environment, the peripheral system has a limited storage processing time for transaction data. We need to increase the data storage processing volume of the peripheral system as much as possible within a limited time, and waiting will affect the data storage processing volume of the peripheral system.

[0004] Therefore, the prior art has defects and needs to be improved and developed. Summary of the invention

[0005] The embodiments of the present application provide a flexible data migration method, device, storage medium and electronic device, which can flexibly set the migration time point of transaction data and improve the data warehousing processing capacity of the peripheral system within a limited time.

[0006] The present application provides a flexible data migration method, which includes:

[0007] Obtaining a first business date year-month table corresponding to the previous business date, wherein the first business date year-month table records first transaction data belonging to the first natural day time migrated from the current natural date year-month table, and the first natural day time corresponds to the previous business date;

[0008] Acquire the first transaction data from the first business date year-month table;

[0009] Based on the acquired first transaction data, determining the data volume of the first transaction data;

[0010] Based on the data volume of the first transaction data, determine the migration time of the second transaction data after the first natural day in the current business date year-month table to the second business date year-month table corresponding to the target business date after the previous business date;

[0011] Migrating the second transaction data in the current business date year-month table to the second business date year-month table corresponding to the target business date after the previous business date based on the migration time;

[0012] A data file is received and sent by the core system after the second transaction data is accounted, and the second transaction data in the business date year-month table of the second business is accounted according to the information in the file to complete the joint debugging test.

[0013] In the flexible data migration method described in the embodiment of the present application, the determining the data volume of the first transaction data based on the acquired first transaction data includes:

[0014] Based on the acquired first transaction data, determining a transaction type and a transaction quantity included in the first transaction data;

[0015] Based on the transaction type and transaction quantity, the data volume of the first transaction data is determined.

[0016] In the flexible data migration method described in the embodiment of the present application, the determining the data volume of the first transaction data based on the transaction type and the transaction quantity includes:

[0017] Obtaining a preset transaction data storage processing difficulty table, wherein the transaction data storage processing difficulty table records the processing difficulty of transaction data corresponding to each transaction type;

[0018] Determining the difficulty of processing transaction data corresponding to each transaction type in the first transaction data based on the transaction data storage processing difficulty table;

[0019] The data volume of the first transaction data is determined based on the difficulty of processing the transaction data corresponding to each transaction type in the first transaction data and the number of transactions corresponding to each transaction type.

[0020] In the flexible data migration method described in the embodiment of the present application, the determining, based on the data volume of the first transaction data, to migrate the second transaction data after the first natural date in the current natural date year-month table to the migration time in the second business date year-month table corresponding to the target business date after the previous business date includes:

[0021] If the data volume of the first transaction data exceeds the first preset transaction data volume, the migration time is determined to be the first preset time;

[0022] If the data volume of the first transaction data is less than or equal to the first preset transaction data volume, but greater than the second preset transaction data volume, the migration time is determined to be the second preset time;

[0023] If the data volume of the first transaction data is less than or equal to the second preset transaction data volume, the migration time is determined to be a third preset time, wherein the first preset time is greater than the second preset time, and the second preset time is greater than the third preset time.

[0024] In the flexible data migration method described in the embodiment of the present application, before migrating the second transaction data in the current natural date year-month table to the second business date year-month table corresponding to the target business date after the previous business date based on the migration time, it also includes:

[0025] Determine, from the current natural date year-month table, the second transaction data in the second business date year-month table corresponding to the target business date after the previous business date that needs to be migrated;

[0026] In the flexible data migration method described in the embodiment of the present application, after determining from the current natural date year-month table the second transaction data to be migrated to the second business date year-month table corresponding to the target business date after the previous business date, it also includes:

[0027] Determining the data volume of the second transaction data;

[0028] Based on the data volume of the second transaction data, the second transaction data is divided into batches to obtain multiple batches of second transaction data;

[0029] The step of migrating the second transaction data to the second business date year-month table corresponding to the target business date after the previous business date includes:

[0030] Migrate multiple batches of the second transaction data in sequence to the second business date year-month table corresponding to the target business date after the previous business date in a preset order.

[0031] In the flexible data migration method described in the embodiment of the present application, the receiving core system sends a data file after the second transaction data is accounted, and according to the information in the file, the second transaction data in the business date year-month table of the second business is accounted, and the joint debugging test is completed, including:

[0032] Receiving a data file sent by the core system after the transaction data is entered into the account;

[0033] Acquire data information corresponding to each batch of the second transaction data from the data file;

[0034] Based on the data information, each batch of the second transaction data in the business date year-month table of the second business is recorded in turn to complete the joint debugging test.

[0035] The embodiment of the present application also provides a flexible data migration device, the device comprising:

[0036] A first acquisition module is used to acquire a first business date year-month table corresponding to a previous business date, wherein the first business date year-month table records first transaction data belonging to a first natural day time migrated from a current natural date year-month table, and the first natural day time corresponds to the previous business date;

[0037] A second acquisition module, configured to acquire the first transaction data from the first business date year-month table;

[0038] a determination module, configured to determine the data volume of the first transaction data based on the acquired first transaction data;

[0039] A determination module, configured to determine, based on the data volume of the first transaction data, a migration time for migrating the second transaction data after the first natural date in the current natural date year-month table to a second business date year-month table corresponding to a target business date after the previous business date;

[0040] A migration module, configured to migrate the second transaction data in the current natural date year-month table to a second business date year-month table corresponding to a target business date after the previous business date based on the migration time;

[0041] The processing module is used to receive the data file sent by the core system after the second transaction data is accounted, and according to the information in the file, the second transaction data in the business date year-month table of the second business is accounted to complete the joint debugging test.

[0042] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed on a computer, the computer is enabled to execute the flexible data migration method described in any embodiment.

[0043] An embodiment of the present application also provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and the processor executes the flexible data migration method described in any embodiment by calling the computer program stored in the memory.

[0044] The embodiment of the present application determines the migration time of migrating the second transaction data in the current business date year-month table to the second business date year-month table corresponding to the target business date after the previous business date according to the data volume of the first transaction data in the previous business date year-month table. Instead of pre-setting a fixed time period, the migration time interval between each two adjacent transaction data must meet this time period. Therefore, compared with the prior art, the migration time point of transaction data is more flexible, which increases the data storage processing capacity of the peripheral system within a limited time. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0046] Figure 1 A flowchart of a flexible data migration method provided in an embodiment of the present application.

[0047] Figure 2 A schematic diagram of the structure of a flexible data migration device provided in an embodiment of the present application.

[0048] Figure 3 Another structural schematic diagram of a flexible data migration device provided in an embodiment of the present application.

[0049] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0051] An embodiment of the present application provides a flexible data migration method, which can be applied to an electronic device.

[0052] See also Figure 1 , Figure 1 A flow chart of a flexible data migration method provided in an embodiment of the present application. The flexible data migration method is applied to an electronic device, and the method may include the following steps:

[0053] Step 101, obtaining a first business date year-month table corresponding to a previous business date, wherein the first business date year-month table records first transaction data belonging to a first natural day time migrated from a current natural date year-month table, and the first natural day time corresponds to the previous business date.

[0054] Among them, there is generally only one current natural date year-month table. As the natural day changes, the transaction data of each natural day is added to the table. Of course, it is understandable that if there is a limit on the table data size, after the table data reaches the preset data threshold, a new table is created as a new current natural day year-month table, and the old current natural day year-month table will be saved in the database. However, it is understandable that the old current natural day year-month table is equivalent to recording the transaction data in a natural day, and the content in the table generally will not change with the natural day.

[0055] The first transaction data may include more than one transaction data, for example, 100 or 1,000 transaction data.

[0056] Step 102: Acquire the first transaction data from the first business date year-month table.

[0057] Step 103: Determine the data volume of the first transaction data based on the acquired first transaction data.

[0058] In some embodiments, the determining the data volume of the first transaction data based on the acquired first transaction data includes:

[0059] Based on the acquired first transaction data, determining a transaction type and a transaction quantity included in the first transaction data;

[0060] Based on the transaction type and transaction quantity, the data volume of the first transaction data is determined.

[0061] The transaction type refers to the type of the transaction, and a transaction type can be identified for each transaction. The transaction quantity refers to the number of transactions, for example, the first transaction data includes 100 transactions (transaction quantity).

[0062] In some embodiments, the determining the data volume of the first transaction data based on the transaction type and the transaction quantity includes:

[0063] Obtaining a preset transaction data storage processing difficulty table, wherein the transaction data storage processing difficulty table records the processing difficulty of transaction data corresponding to each transaction type;

[0064] Determining the difficulty of processing transaction data corresponding to each transaction type in the first transaction data based on the transaction data storage processing difficulty table;

[0065] The data volume of the first transaction data is determined based on the difficulty of processing the transaction data corresponding to each transaction type in the first transaction data and the number of transactions corresponding to each transaction type.

[0066] Among them, the greater the processing difficulty and the greater the number of transactions, the larger the data volume of the first transaction data; the smaller the processing difficulty and the smaller the number of transactions, the smaller the data volume of the first transaction data.

[0067] Step 104, based on the data volume of the first transaction data, determine the migration time of migrating the second transaction data after the first natural date in the current natural date year-month table to the second business date year-month table corresponding to the target business date after the previous business date.

[0068] For example, if the last business date is November 13, 2021, then the target business date after the last business date is November 14, 2022, and the second transaction data is the transaction data corresponding to the target business date (November 14, 2022).

[0069] For example, if the amount of the first transaction data is relatively small, the migration time will be advanced, that is, the second transaction data after the first natural day in the current natural date year-month table will be migrated to the second business date year-month table corresponding to the target business date after the previous business date. If the amount of the first transaction data is relatively large, the migration time will be delayed, that is, the second transaction data after the first natural day in the current natural date year-month table will be migrated to the second business date year-month table corresponding to the target business date after the previous business date.

[0070] In some embodiments, the determining, based on the data volume of the first transaction data, to migrate the second transaction data after the first natural date in the current natural date year-month table to the migration time in the second business date year-month table corresponding to the target business date after the previous business date includes:

[0071] If the data volume of the first transaction data exceeds the first preset transaction data volume, the migration time is determined to be the first preset time;

[0072] If the data volume of the first transaction data is less than or equal to the first preset transaction data volume, but greater than the second preset transaction data volume, the migration time is determined to be the second preset time;

[0073] If the data volume of the first transaction data is less than or equal to the second preset transaction data volume, the migration time is determined to be a third preset time, wherein the first preset time is greater than the second preset time, and the second preset time is greater than the third preset time.

[0074] Among them, those skilled in the art can set the first preset transaction data volume size and the second preset transaction data volume size according to actual conditions, and no specific limitation is made here. For example, the first preset transaction data volume size is 1000 transactions, and the second preset transaction data volume size is 500 transactions.

[0075] The relationship between the first preset time, the second preset time and the third preset time is: the first preset time is greater than the second preset time, and the second preset time is greater than the third preset time. For example, if the first preset time is 5:00 p.m. on August 8, 2021, the second preset time may be 4:00 p.m. on August 8, 2021, and the third preset time may be 3:00 p.m. on August 8, 2021.

[0076] Step 105: Migrate the second transaction data in the current natural date year-month table to a second business date year-month table corresponding to a target business date after the previous business date based on the migration time.

[0077] In some embodiments, the migrating the second transaction data in the current natural date year-month table to the second business date year-month table corresponding to the target business date after the previous business date based on the migration time further includes:

[0078] The second transaction data in the second business date year-month table corresponding to the target business date after the previous business date is determined from the current natural date year-month table.

[0079] Among them, since the current natural date year-month table records the transaction data corresponding to all business dates, it is necessary to determine the transaction data corresponding to each business date from all the transaction data in the current natural date year-month table.

[0080] In some embodiments, after determining from the current natural date year-month table the second transaction data that needs to be migrated to the second business date year-month table corresponding to the target business date after the previous business date, the method further includes:

[0081] Determining the data volume of the second transaction data;

[0082] Based on the data volume of the second transaction data, the second transaction data is divided into batches to obtain multiple batches of second transaction data;

[0083] The step of migrating the second transaction data to the second business date year-month table corresponding to the target business date after the previous business date includes:

[0084] Migrate multiple batches of the second transaction data in sequence to the second business date year-month table corresponding to the target business date after the previous business date in a preset order.

[0085] Migrating transaction data in batches can improve migration efficiency. When the amount of data is large, the number of batches can be larger, and when the amount of data is small, the number of batches can be smaller.

[0086] Step 106, receiving a data file sent by the core system after the second transaction data is accounted, and according to the information in the file, accounting processing is performed on the second transaction data in the business date year-month table of the second business, thereby completing the joint debugging test.

[0087] Among them, the data file is sent to the peripheral system after the core system has processed the transaction data. The core system transmits the transaction data after the accounting process to the peripheral system through the file in the dimension of the business date, telling the peripheral system which transactions have been accounted (the first stage). The transaction data recorded in the current natural date year-month table is the transaction data that the core system transmits to the peripheral system through the mq message in the dimension of the natural date when the transaction occurs (when the transaction is carried out on the current natural day) (the second stage).

[0088] Among them, the transaction data in the current business date year-month table is processed for accounting, that is, several accounting-related information is added to the current business date year-month table, that is, the data transmitted from the core system to the peripheral system in the first stage is found in the current business date year-month table, and then the relevant accounting information (for example: accounting amount, accounting date, accounting serial number) is added.

[0089] In some embodiments, the receiving core system sends a data file after accounting the second transaction data, and according to the information in the file, performs accounting processing on the second transaction data in the business date year-month table of the second business, to complete the joint debugging test, including:

[0090] Receiving a data file sent by the core system after the transaction data is entered into the account;

[0091] Acquire data information corresponding to each batch of the second transaction data from the data file;

[0092] Based on the data information, each batch of the second transaction data in the business date year-month table of the second business is recorded in turn to complete the joint debugging test.

[0093] Embodiment 1:

[0094] For example, in the prior art, according to the fixed time, the second transaction data should be migrated to the second business date year-month table at 5:00 p.m. on August 8, 2021. However, according to this solution, since it is detected that the data volume of the first transaction data is less than or equal to the first preset transaction data volume, but greater than the second preset transaction data volume, the migration time is advanced, and the second transaction data is migrated to the second business date year-month table at 4:00 p.m. on August 8, 2021. Among them, because the data volume of the first transaction data is relatively small, it can be judged that the peripheral system can quickly process the first transaction data in the first business date year-month table. For example, assuming that it takes 20 minutes for the peripheral system to completely migrate the second transaction data to the second business date year-month table, the peripheral system will be able to complete the warehousing and processing of the first transaction data in the first business date year-month table at 4:20 p.m. on August 8, 2021. If, according to the prior art, the peripheral system migrates the second transaction data to the second business date year-month table at 5 p.m. on August 8, 2021, it will take until 5:20 p.m. on August 8, 2021 to completely migrate the second transaction data to the second business date year-month table. The peripheral system will have to wait from 4:20 p.m. on August 8, 2021 to 5:20 p.m. on August 8, 2021 before it can enter the second transaction data in the second business date year-month table. According to this plan, the peripheral system will migrate the second transaction data to the second business date year-month table at 4 o'clock in the afternoon on August 8, 2021. After the peripheral system processes the first transaction data in the first business date year-month table, the peripheral system will also completely migrate the second transaction data to the second business date year-month table. At this time, the peripheral system can directly process the second transaction data in the second business date year-month table without waiting, thereby increasing the data warehousing processing capacity of the peripheral system within a limited time.

[0095] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0096] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.

[0097] As can be seen from the above, the flexible data migration method provided by the embodiment of the present application determines the migration time of migrating the second transaction data in the current business date year-month table to the second business date year-month table corresponding to the target business date after the previous business date based on the data volume of the first transaction data in the previous business date year-month table. Instead of pre-setting a fixed time period, the migration time interval of each two adjacent transaction data must meet this time period. Therefore, compared with the prior art, the migration time point of transaction data is more flexible, which improves the data storage processing capacity of the peripheral system within a limited time.

[0098] An embodiment of the present application also provides a flexible data migration device, which can be integrated into an electronic device.

[0099] See also Figure 2 , Figure 2 A schematic diagram of the structure of a flexible data migration device provided in an embodiment of the present application. The flexible data migration device 30 may include:

[0100] A first acquisition module 31 is used to acquire a first business date year-month table corresponding to a previous business date, wherein the first business date year-month table records first transaction data belonging to a first natural day time migrated from a current natural date year-month table, and the first natural day time corresponds to the previous business date;

[0101] A second acquisition module 32, configured to acquire the first transaction data from the first business date year-month table;

[0102] A determination module 33, configured to determine the data volume of the first transaction data based on the acquired first transaction data;

[0103] A determination module 34 is used to determine, based on the data volume of the first transaction data, the migration time of the second transaction data after the first natural date in the current natural date year-month table to the second business date year-month table corresponding to the target business date after the previous business date;

[0104] A migration module 35, configured to migrate the second transaction data in the current natural date year-month table to a second business date year-month table corresponding to a target business date after the previous business date based on the migration time;

[0105] The processing module 36 is used to receive the data file sent by the core system after the second transaction data is entered into the account, and according to the information in the file, the second transaction data in the business date year-month table of the second business is entered into the account to complete the joint debugging test.

[0106] In some embodiments, the determination module 33 is used to determine the transaction type and transaction quantity included in the first transaction data based on the acquired first transaction data;

[0107] Based on the transaction type and transaction quantity, the data volume of the first transaction data is determined.

[0108] In some embodiments, the judgment module 33 is used to obtain a preset transaction data storage processing difficulty table, wherein the transaction data storage processing difficulty table records the processing difficulty of transaction data corresponding to each transaction type;

[0109] Determining the difficulty of processing transaction data corresponding to each transaction type in the first transaction data based on the transaction data storage processing difficulty table;

[0110] The data volume of the first transaction data is determined based on the difficulty of processing the transaction data corresponding to each transaction type in the first transaction data and the number of transactions corresponding to each transaction type.

[0111] In some embodiments, the determining module 34 is configured to determine the migration time as a first preset time if the data volume of the first transaction data exceeds a first preset transaction data volume;

[0112] If the data volume of the first transaction data is less than or equal to the first preset transaction data volume, but greater than the second preset transaction data volume, the migration time is determined to be the second preset time;

[0113] If the data volume of the first transaction data is less than or equal to the second preset transaction data volume, the migration time is determined to be a third preset time, wherein the first preset time is greater than the second preset time, and the second preset time is greater than the third preset time.

[0114] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.

[0115] As can be seen from the above, the flexible data migration device 30 provided in the embodiment of the present application obtains the first business date year-month table corresponding to the previous business date through the first acquisition module 31, wherein the first business date year-month table records the first transaction data belonging to the first natural day time migrated from the current natural date year-month table, and the first natural day time corresponds to the previous business date; obtains the first transaction data from the first business date year-month table through the second acquisition module 32; judges the data volume of the first transaction data based on the first transaction data obtained through the judgment module 33; and judges the data volume of the first transaction data based on the data volume of the first transaction data through the determination module 34. Determine the migration time of migrating the second transaction data after the first natural date in the current natural date year-month table to the second business date year-month table corresponding to the target business date after the previous business date; migrate the second transaction data in the current natural date year-month table to the second business date year-month table corresponding to the target business date after the previous business date based on the migration time through the migration module 35; receive the data file sent by the core system after the second transaction data is accounted, and according to the information in the file, account the second transaction data in the second business date year-month table to complete the joint debugging test.

[0116] See also Figure 3 , Figure 3 Another structural diagram of a flexible data migration device provided for an embodiment of the present application, the flexible data migration device 30 includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a first acquisition module 31, a second acquisition module 32, a judgment module 33, a determination module 34, a migration module 35 and a processing module 36.

[0117] For example, the structures and connection relationships of the above components can be as follows:

[0118] The memory 120 can be used to store applications and data. The applications stored in the memory 120 include executable codes. The applications can be composed of various functional modules. The processor 180 executes various functional applications and data processing by running the applications stored in the memory 120. In addition, the memory 120 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.

[0119] The processor 180 is the control center of the device, and uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the device and processes data by running or executing applications stored in the memory 120, and calling data stored in the memory 120, so as to monitor the device as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs.

[0120] Specifically in this embodiment, the processor 180 will load the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 will run the application programs stored in the memory 120 to implement various functions:

[0121] A first acquisition module 31 is used to acquire a first business date year-month table corresponding to a previous business date, wherein the first business date year-month table records first transaction data belonging to a first natural day time migrated from a current natural date year-month table, and the first natural day time corresponds to the previous business date;

[0122] A second acquisition module 32, configured to acquire the first transaction data from the first business date year-month table;

[0123] A determination module 33, configured to determine the data volume of the first transaction data based on the acquired first transaction data;

[0124] A determination module 34 is used to determine, based on the data volume of the first transaction data, the migration time of the second transaction data after the first natural date in the current natural date year-month table to the second business date year-month table corresponding to the target business date after the previous business date;

[0125] A migration module 35, configured to migrate the second transaction data in the current natural date year-month table to a second business date year-month table corresponding to a target business date after the previous business date based on the migration time;

[0126] The processing module 36 is used to receive the data file sent by the core system after the second transaction data is entered into the account, and according to the information in the file, the second transaction data in the business date year-month table of the second business is entered into the account to complete the joint debugging test.

[0127] In some embodiments, the determination module 33 is used to determine the transaction type and transaction quantity included in the first transaction data based on the acquired first transaction data;

[0128] Based on the transaction type and transaction quantity, the data volume of the first transaction data is determined.

[0129] In some embodiments, the judgment module 33 is used to obtain a preset transaction data storage processing difficulty table, wherein the transaction data storage processing difficulty table records the processing difficulty of transaction data corresponding to each transaction type;

[0130] Determining the difficulty of processing transaction data corresponding to each transaction type in the first transaction data based on the transaction data storage processing difficulty table;

[0131] The data volume of the first transaction data is determined based on the difficulty of processing the transaction data corresponding to each transaction type in the first transaction data and the number of transactions corresponding to each transaction type.

[0132] In some embodiments, the determining module 34 is configured to determine the migration time as a first preset time if the data volume of the first transaction data exceeds a first preset transaction data volume;

[0133] If the data volume of the first transaction data is less than or equal to the first preset transaction data volume, but greater than the second preset transaction data volume, the migration time is determined to be the second preset time;

[0134] If the data volume of the first transaction data is less than or equal to the second preset transaction data volume, the migration time is determined to be a third preset time, wherein the first preset time is greater than the second preset time, and the second preset time is greater than the third preset time.

[0135] The present application also provides an electronic device. Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown, and the electronic device can be used to implement the flexible data migration method provided in the above embodiment.

[0136] like Figure 4 As shown, the electronic device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Figure 4The structure of the electronic device 1200 shown in the figure does not constitute a limitation on the electronic device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0137] The RF circuit 110 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a user identity module (SIM) card, a memory, etc. The RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network.

[0138] The memory 120 can be used to store software programs and modules, such as program instructions / modules corresponding to the flexible data migration method in the above-mentioned embodiment. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, and can flexibly set the migration time point of transaction data, thereby improving the data storage processing capacity of the peripheral system within a limited time. The memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include a memory remotely arranged relative to the processor 180, and these remote memories may be connected to the electronic device 1200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0139] The input unit 130 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display screen or a touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 131), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 131 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 may further include other input devices 132. Specifically, other input devices 132 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.

[0140] The display unit 140 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 1200, which may be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 4 In the embodiment, the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to realize the input and output functions. However, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize the input and output functions.

[0141] The electronic device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the electronic device 1200 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 1200, they will not be repeated here.

[0142] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the electronic device 1200. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is output to the processor 180 for processing, and then sent to another terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earplug jack to provide communication between an external headset and the electronic device 1200.

[0143] The electronic device 1200 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 170 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Figure 4 The transmission module 170 is shown, but it is understandable that it is not an essential component of the electronic device 1200 and can be omitted as needed without changing the essence of the invention.

[0144] The processor 180 is the control center of the electronic device 1200. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the electronic device 1200 and processes data by running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 180.

[0145] The electronic device 1200 also includes a power supply 190 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 190 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0146] Although not shown, the electronic device 1200 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit 140 of the electronic device 1200 is a touch screen display, and the electronic device 1200 also includes a memory 120, and one or more programs, wherein one or more programs are stored in the memory 120, and are configured to be executed by one or more processors 180. One or more programs include instructions for performing the following operations:

[0147] Obtaining a first business date year-month table corresponding to the previous business date, wherein the first business date year-month table records first transaction data belonging to the first natural day time migrated from the current natural date year-month table, and the first natural day time corresponds to the previous business date;

[0148] Acquire the first transaction data from the first business date year-month table;

[0149] Based on the acquired first transaction data, determining the data volume of the first transaction data;

[0150] Based on the data volume of the first transaction data, determine to migrate the second transaction data after the first natural date in the current natural date year-month table to the migration time in the second business date year-month table corresponding to the target business date after the previous business date;

[0151] Migrating the second transaction data in the current natural date year-month table to the second business date year-month table corresponding to the target business date after the previous business date based on the migration time;

[0152] A data file is received and sent by the core system after the second transaction data is accounted, and the second transaction data in the business date year-month table of the second business is accounted according to the information in the file to complete the joint debugging test.

[0153] In some embodiments, the processor 180 is configured to determine, based on the acquired first transaction data, a transaction type and a transaction quantity included in the first transaction data;

[0154] Based on the transaction type and transaction quantity, the data volume of the first transaction data is determined.

[0155] In some embodiments, the processor 180 is used to obtain a preset transaction data storage processing difficulty table, wherein the transaction data storage processing difficulty table records the processing difficulty of transaction data corresponding to each transaction type;

[0156] Determining the difficulty of processing transaction data corresponding to each transaction type in the first transaction data based on the transaction data storage processing difficulty table;

[0157] The data volume of the first transaction data is determined based on the difficulty of processing the transaction data corresponding to each transaction type in the first transaction data and the number of transactions corresponding to each transaction type.

[0158] In some embodiments, the processor 180 is configured to determine the migration time as a first preset time if the data volume of the first transaction data exceeds a first preset transaction data volume;

[0159] If the data volume of the first transaction data is less than or equal to the first preset transaction data volume, but greater than the second preset transaction data volume, the migration time is determined to be the second preset time;

[0160] If the data volume of the first transaction data is less than or equal to the second preset transaction data volume, the migration time is determined to be a third preset time, wherein the first preset time is greater than the second preset time, and the second preset time is greater than the third preset time.

[0161] In some embodiments, the processor 180 is used to determine, from the current natural date year-month table, the second transaction data in the second business date year-month table that needs to be migrated to the target business date after the previous business date.

[0162] In some embodiments, the processor 180 is used to determine the data volume of the second transaction data;

[0163] Based on the data volume of the second transaction data, the second transaction data is divided into batches to obtain multiple batches of second transaction data;

[0164] Migrate multiple batches of the second transaction data in sequence to the second business date year-month table corresponding to the target business date after the previous business date in a preset order.

[0165] In some embodiments, the processor 180 is used to receive a data file sent by the core system after the transaction data is entered into the account;

[0166] Acquire data information corresponding to each batch of the second transaction data from the data file;

[0167] Based on the data information, each batch of the second transaction data in the business date year-month table of the second business is recorded in turn to complete the joint debugging test.

[0168] As can be seen from the above, an embodiment of the present application provides an electronic device 1200, and the electronic device 1200 performs the following steps: obtaining a first business date year-month table corresponding to the previous business date, wherein the first business date year-month table records the first transaction data belonging to the first natural day time migrated from the current natural date year-month table, and the first natural day time corresponds to the previous business date; obtaining the first transaction data from the first business date year-month table; judging the data volume of the first transaction data based on the obtained first transaction data; determining the migration time of migrating the second transaction data after the first natural day time in the current natural date year-month table to the second business date year-month table corresponding to the target business date after the previous business date based on the data volume of the first transaction data; migrating the second transaction data in the current natural date year-month table to the second business date year-month table corresponding to the target business date after the previous business date based on the migration time; receiving the data file sent by the core system after the second transaction data is accounted, and according to the information in the file, the second transaction data in the second business date year-month table is accounted, and the joint debugging test is completed.

[0169] An embodiment of the present application further provides a storage medium, in which a computer program is stored. When the computer program runs on a computer, the computer executes the flexible data migration method described in any of the above embodiments.

[0170] It should be noted that, for the flexible data migration method described in the present application, ordinary testers in the field can understand that all or part of the process of implementing the flexible data migration method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process may include the process of the embodiment of the flexible data migration method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.

[0171] For the flexible data migration device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.

[0172] The flexible data migration method, device, storage medium and electronic device provided by the embodiments of the present application are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A flexible data migration method, characterized in that: include: Obtaining a first business date year-month table corresponding to the previous business date, wherein the first business date year-month table records first transaction data belonging to the first natural day time migrated from the current natural date year-month table, and the first natural day time corresponds to the previous business date; Acquire the first transaction data from the first business date year-month table; Based on the acquired first transaction data, determining the data volume of the first transaction data; Based on the data volume of the first transaction data, determining a migration time for migrating the second transaction data after the first natural date in the current natural date year-month table to a second business date year-month table corresponding to a target business date after the previous business date; Migrating the second transaction data in the current natural date year-month table to the second business date year-month table corresponding to the target business date after the previous business date based on the migration time; receiving a data file sent by the core system after the second transaction data is entered into the account, and according to the information in the file, entering into the account the second transaction data in the second business date year-month table, thereby completing the joint debugging test; Wherein, determining the migration time of migrating the second transaction data after the first natural date in the current natural date year-month table to the second business date year-month table corresponding to the target business date after the previous business date based on the data volume of the first transaction data includes: If the data volume of the first transaction data exceeds the first preset transaction data volume, the migration time is determined to be the first preset time; If the data volume of the first transaction data is less than or equal to the first preset transaction data volume, but greater than the second preset transaction data volume, the migration time is determined to be the second preset time; If the data volume of the first transaction data is less than or equal to the second preset transaction data volume, the migration time is determined to be a third preset time, wherein the first preset time is greater than the second preset time, and the second preset time is greater than the third preset time.

2. The flexible data migration method according to claim 1, characterized in that: The determining, based on the acquired first transaction data, the data volume of the first transaction data includes: Based on the acquired first transaction data, determining a transaction type and a transaction quantity included in the first transaction data; Based on the transaction type and transaction quantity, the data volume of the first transaction data is determined.

3. The flexible data migration method according to claim 2, characterized in that: The determining, based on the transaction type and the transaction quantity, the data volume of the first transaction data includes: Obtaining a preset transaction data storage processing difficulty table, wherein the transaction data storage processing difficulty table records the processing difficulty of transaction data corresponding to each transaction type; Determining the difficulty of processing transaction data corresponding to each transaction type in the first transaction data based on the transaction data storage processing difficulty table; The data volume of the first transaction data is determined based on the difficulty of processing the transaction data corresponding to each transaction type in the first transaction data and the number of transactions corresponding to each transaction type.

4. The flexible data migration method according to claim 1, characterized in that: The step of migrating the second transaction data in the current natural date year-month table to before the second business date year-month table corresponding to the target business date after the previous business date based on the migration time also includes: The second transaction data in the second business date year-month table corresponding to the target business date after the previous business date is determined from the current natural date year-month table.

5. The flexible data migration method according to claim 4, characterized in that: After determining from the current natural date year-month table the second transaction data that needs to be migrated to the second business date year-month table corresponding to the target business date after the previous business date, the method further includes: Determining the data volume of the second transaction data; Based on the data volume of the second transaction data, the second transaction data is divided into batches to obtain multiple batches of second transaction data; The step of migrating the second transaction data to the second business date year-month table corresponding to the target business date after the previous business date includes: Migrate multiple batches of the second transaction data in sequence to the second business date year-month table corresponding to the target business date after the previous business date in a preset order.

6. The flexible data migration method according to claim 5, characterized in that: The receiving core system sends a data file after the second transaction data is accounted, and according to the information in the file, the second transaction data in the second business date year-month table is accounted, to complete the joint debugging test, including: Receiving a data file sent by the core system after the transaction data is entered into the account; Acquire data information corresponding to each batch of the second transaction data from the data file; Based on the data information, each batch of the second transaction data in the second business date year-month table is recorded in turn to complete the joint debugging test.

7. A flexible data migration device, characterized in that: The device comprises: A first acquisition module is used to acquire a first business date year-month table corresponding to a previous business date, wherein the first business date year-month table records first transaction data belonging to a first natural day time migrated from a current natural date year-month table, and the first natural day time corresponds to the previous business date; A second acquisition module, configured to acquire the first transaction data from the first business date year-month table; a determination module, configured to determine the data volume of the first transaction data based on the acquired first transaction data; A determination module, configured to determine, based on the data volume of the first transaction data, a migration time for migrating the second transaction data after the first natural date in the current natural date year-month table to a second business date year-month table corresponding to a target business date after the previous business date; A migration module, configured to migrate the second transaction data in the current natural date year-month table to a second business date year-month table corresponding to a target business date after the previous business date based on the migration time; A processing module is used to receive a data file sent by the core system after the second transaction data is entered into the account, and according to the information in the file, enter the second transaction data in the second business date year-month table into the account to complete the joint debugging test; Wherein, the migration module includes: If the data volume of the first transaction data exceeds the first preset transaction data volume, the migration time is determined to be the first preset time; If the data volume of the first transaction data is less than or equal to the first preset transaction data volume, but greater than the second preset transaction data volume, the migration time is determined to be the second preset time; If the data volume of the first transaction data is less than or equal to the second preset transaction data volume, the migration time is determined to be a third preset time, wherein the first preset time is greater than the second preset time, and the second preset time is greater than the third preset time.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the computer is enabled to execute the flexible data migration method according to any one of claims 1 to 6.

9. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the flexible data migration method described in any one of claims 1 to 6 by calling the computer program stored in the memory.

Citation Information

Patent Citations

  • Method and device for data migration

    CN107391634A

  • Data migration method and apparatus

    CN108664496A