Configuration data migration method and device, equipment, storage medium and program product

By obtaining and processing the initialization configuration data of the business model from the preset database, combined with dictionary query and packaging technology, the manual input configuration data is consuming and easy to make errors, and the efficient transition from offline to online operations is realized.

CN119376818AActive Publication Date: 2025-01-28CHINA THREE GORGES CORPORATION
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411519618.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-01-28
Estimated Expiration
2044-10-29

AI Technical Summary

Technical Problem

When the business model switches from offline operation mode to online operation mode, the process of manually inputting a large amount of initialization configuration data is too long and error-prone, affecting the timely start-up and normal operation of the business model.

Method used

By obtaining the business model under the preset database to initialize the configuration data in the business model in the offline operation mode, and determine the control point corresponding to the data point through the dictionary query, the packaging configuration data and the control instructions are the second control instructions. Implement the online operation mode.

Benefits of technology

It reduced the tediousness and error rate of manual operation, solved the problem of too long time caused by manual input configuration data, provided a guarantee for the efficient operation of the business model, improved the utilization of the configuration data, realized the business model from offline operation from offline operation The smooth transition of mode to online operation mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376818A_ABST
    Figure CN119376818A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and discloses a configuration data migration method and device, equipment, a storage medium and a program product, the configuration data migration method comprises the following steps: obtaining first configuration data from a preset database, and determining a data point location for marking the first configuration data; determining a control point location corresponding to the data point location in a dictionary query mode, and determining a first control instruction marked by the control point location; packaging the first configuration data and the first control instruction into a second control instruction, wherein the second control instruction comprises second configuration data; and issuing the second control instruction to the business model in the online operation mode to enable the second configuration data to take effect in the business model. According to the method and the device, the initialization configuration data in the business model in the offline operation mode is transferred into the business model in the online operation mode, so that the problems of low efficiency and high error rate caused by manually inputting the initialization configuration data are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment, storage medium and program product for migrating configuration data. Background Art

[0002] With the rapid development of information technology, various complex business models have been widely used in many fields. The operation mechanism of the business model is crucial to its efficiency and accuracy, especially in scenarios that require processing large amounts of data and high-precision calculations. In general, the business model has a dual operation mechanism: offline operation and online operation.

[0003] In offline operation mode, the business model operates independently of external systems and relies on the huge amount of internal preset initialization configuration data to simulate and predict various scenarios. In this mode, the business model does not need to interact with external data in real time, so it can work independently without network connection or external system support. The online operation mode relies on the management and control platform to dynamically adjust and optimize the business model by receiving and sending data in real time. In this mode, the business model needs to perform calculations based on the data input provided by the management and control platform, and output the results to the management and control platform for further analysis or decision-making.

[0004] Although the dual operation mechanism provides great flexibility and adaptability for the application of business models, there is a significant disadvantage in the online operation mode: in the process of switching from the offline operation mode to the online operation mode, the initialization configuration data needs to be updated. In the related technology, complex initialization configuration data is manually entered into the business model one by one. The process of manually entering a large amount of initialization configuration data is time-consuming and error-prone, which is not only inefficient, but also increases the risk of human error. The delay in data input will also affect the timely startup and normal operation of the business model. Summary of the invention

[0005] In view of this, the present invention provides a configuration data migration method, apparatus, device, storage medium and program product to solve the problem that the process of manually inputting a large amount of initialization configuration data is too time-consuming and prone to errors.

[0006] In a first aspect, the present invention provides a method for migrating configuration data, comprising: obtaining first configuration data from a preset database, and determining a data point for marking the first configuration data; the first configuration data is first initialization configuration data transferred from a business model in an offline operation mode to a preset database; determining a control point corresponding to the data point by dictionary query, and determining a first control instruction for marking the control point; encapsulating the first configuration data and the first control instruction into a second control instruction, the second control instruction including second configuration data, the second configuration data being second initialization configuration data obtained after processing the first configuration data; and sending the second control instruction to the business model so that the business model runs in an online operation mode based on the second configuration data.

[0007] The present invention obtains the first configuration data transferred from the business model in the offline operation mode to the preset database from the preset database, determines the data point for marking the first configuration data, determines the control point corresponding to the data point by dictionary query, improves the efficiency of querying the data point, and can conveniently add new data points and control points, which is convenient for maintenance and expansion. The present invention determines the first control instruction marked by the control point, encapsulates the first configuration data and the first control instruction into a second control instruction, the second control instruction contains the second configuration data, and encapsulates the first configuration data and the first control instruction to improve the confidentiality of the data transmission process. The present invention sends the second control instruction to the business model so that the business model runs in the online operation mode based on the second configuration data. Compared with the manual input of configuration data in the related art, the present invention reduces the cumbersomeness and error rate of manual operation, solves the problem of too long time caused by manually inputting a large amount of configuration data, provides a strong guarantee for the efficient operation of the business model, improves the utilization rate of the configuration data, and realizes the smooth transition of the business model from the offline operation mode to the online operation mode.

[0008] In an optional embodiment, obtaining the first configuration data from a preset database and determining a data point for marking the first configuration data include: obtaining the first configuration data from the preset database and storing the first configuration data in a preset storage unit; marking the data point of the first configuration data in the preset database.

[0009] The present invention obtains first configuration data from a preset database and stores it in a preset storage unit, marks data points of the first configuration data in the preset database, ensures the accuracy of the first configuration data, and facilitates subsequent acquisition of feedback data points corresponding to the data points.

[0010] In an optional embodiment, the control point position corresponding to the data point position is determined by dictionary query, including: obtaining feedback data point positions matching the data point positions, the feedback data point positions are data point positions used to mark the first configuration data in a preset storage unit; querying the feedback data point positions in a preset dictionary to determine the control point positions corresponding to the feedback data point positions, the preset dictionary storing a mapping relationship between the feedback data point positions and the control point positions.

[0011] The preset dictionary of the present invention stores the mapping relationship between feedback data points and control points. The feedback data points are queried in the preset dictionary to determine the control points corresponding to the feedback data points, thereby improving the efficiency of obtaining the control points. At the same time, the feedback data points, control points and other control logics required for use can be added to the preset dictionary at any time, which is convenient for later maintenance and expansion.

[0012] In an optional implementation, encapsulating the first configuration data and the first control instruction into the second control instruction includes: performing data type conversion on the first configuration data and the first control instruction to obtain the second control instruction in a preset format.

[0013] The present invention performs data type conversion on the first configuration data and the first control instruction to obtain a second control instruction in a preset format, thereby ensuring the consistency of the configuration data and the control instruction and enhancing the confidentiality of the data transmission process.

[0014] In an optional implementation, encapsulating the first configuration data and the first control instruction into a second control instruction further includes: performing data format verification and data integrity check on the first configuration data and the first control instruction to obtain the second control instruction.

[0015] The present invention performs data format verification and data integrity check on the first configuration data and the first control instruction to obtain the second control instruction, thereby ensuring that the configuration data is complete and correct without missing values ​​and abnormal values.

[0016] In an optional implementation, a second control instruction is sent to the business model so that the business model runs in an online operation mode based on the second configuration data, including: extracting the second control instruction from a preset storage unit and storing it in a preset database; sending the second control instruction to the business model so that the business model calls the second configuration data in the preset database to run in an online operation mode.

[0017] In a second aspect, the present invention provides a configuration data migration device, comprising: a data acquisition module, used to acquire first configuration data from a preset database, and determine a data point for marking the first configuration data; the first configuration data is the first initialization configuration data transferred from a business model in an offline operation mode to the preset database; a dictionary query module, used to determine the control point corresponding to the data point by means of a dictionary query, and determine the first control instruction for marking the control point; a data encapsulation module, used to encapsulate the first configuration data and the first control instruction into a second control instruction, the second control instruction containing second configuration data, and the second configuration data is the second initialization configuration data obtained after processing the first configuration data; a data calling module, used to send the second control instruction to the business model, so that the business model runs in an online operation mode based on the second configuration data.

[0018] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the configuration data migration method of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0019] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the configuration data migration method of the first aspect or any corresponding embodiment thereof.

[0020] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the configuration data migration method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 is a schematic diagram of a flow chart of a method for migrating configuration data according to an embodiment of the present invention;

[0023] Figure 2 is a schematic diagram of a migration link of configuration data according to an embodiment of the present invention;

[0024] Figure 3 is a flow chart of another configuration data migration method according to an embodiment of the present invention;

[0025] Figure 4 is a flow chart of another method for migrating configuration data according to an embodiment of the present invention;

[0026] Figure 5 is a schematic diagram of a data instruction upload and download link according to an embodiment of the present invention;

[0027] Figure 6 is a structural block diagram of a device for migrating configuration data according to an embodiment of the present invention;

[0028] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0030] With the rapid development of information technology, various complex business models have been widely used in scientific research, industry, finance and other fields. These business models are not only used for theoretical research, but also directly support key tasks such as decision-making, risk assessment and business process optimization. Among them, the business model is a model for processing complex business. The business model can be an artificial intelligence model, a mathematical model, etc. The operation mechanism of the business model is crucial to its efficiency and accuracy, especially in scenarios that require processing large amounts of data and high-precision calculations. At present, many business model designs take into account flexibility and scalability to adapt to different operating environments and requirements. In this context, the dual operation mechanism of the business model: offline operation and online operation, has become an important means to solve complex problems.

[0031] In offline operation mode, the model operates independently of external systems and relies on a large amount of internal preset initialization configuration data to simulate and predict various scenarios. In this mode, the business model does not need to interact with external data in real time, so it can work independently without network connection or external system support. Offline operation mode is suitable for scenarios that require high autonomy and rapid response, such as rapid decision support in emergency situations.

[0032] The online operation mode relies on the control platform to dynamically adjust and optimize the business model by receiving and sending data in real time. In this mode, the business model needs to perform operations based on the data input provided by the control platform, and output the operation results to the business model for further analysis or decision-making. The online operation mode performs well in scenarios that require high precision and dynamic adaptability, such as real-time trading strategy adjustment in the financial market and real-time monitoring of industrial automation production lines, because it can fully utilize the advantages of external data and real-time feedback.

[0033] Although the dual operation mechanism provides great flexibility and adaptability for the application of business models, there is a significant disadvantage in the online operation mode of the existing technology: the process of manually entering a large amount of initialization configuration data is time-consuming and error-prone. Specifically, when the business model needs to be run on the management and control platform, the user needs to manually enter the complex initialization configuration data into the business model one by one. This process is not only inefficient and increases the risk of human error, but may also affect the timely startup and normal operation of the business model due to delays in data input.

[0034] In addition, with the increasing complexity of business models and the dramatic increase in the amount of configuration data, manual input is increasingly unable to meet actual needs.

[0035] The embodiment of the present invention provides a configuration data migration method, which achieves the effect of improving data input efficiency by migrating initialization configuration data.

[0036] According to an embodiment of the present invention, an embodiment of a method for migrating configuration data is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0037] In this embodiment, a configuration data migration method is provided, which can be used for a computer device, and the computer device can be a lower computer. Figure 1 is a flow chart of a method for migrating configuration data according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0038] Step S101, obtaining first configuration data from a preset database, and determining data points for marking the first configuration data; the first configuration data is first initialization configuration data transferred from a business model in an offline operation mode to the preset database.

[0039] The preset database may be a Remote Dictionary Server (Redis) database, and the first configuration data may be initialization configuration parameters used for running the business model in an offline running mode.

[0040] Specifically, this embodiment can transfer the initialization configuration data in the business model to the external configuration input module of the online operation mode before the business model switches from the offline operation mode to the online operation mode controlled by the management and control platform; wherein, the configuration input module can be implemented through the Redis database.

[0041] In some optional embodiments, the data point is an identifier for marking the first configuration data, including a flag bit and a data quantity, wherein the marking method of the data point may be any marking method. Exemplarily, the marking method of the data point may be to mark the first configuration data with a color, the flag bit is the starting position of the first configuration data, and the data quantity is the total number of the first configuration data. Exemplarily, the data point may be (16500, 127), indicating that the data at position 16500 in the Redis database is used as the flag bit, 127 data are taken, the first configuration data is obtained, and the 127 first configuration data starting from position 16500 are marked.

[0042] In some optional implementations, according to a Get command of a Redis database, the first configuration data is obtained from a preset database, and a data point for marking the first configuration data is determined. Optionally, the Get command of this embodiment may be, for example, an mget (batch operation) command.

[0043] The Get command of the Redis database is used to obtain the first configuration data from the preset database to reduce network delay and improve data acquisition speed.

[0044] Step S102, determining the control point corresponding to the data point by dictionary query, and determining the first control instruction marked by the control point.

[0045] The control point is an identifier used to mark the storage location corresponding to the configuration data used in the online operation mode in the preset database, and the first control instruction represents an instruction to control the first configuration data to be stored in the location corresponding to the control point in the preset database.

[0046] In some optional implementations, determining the control point corresponding to the data point by dictionary query includes: querying the data point in a preset dictionary to obtain the control point matching the data point, wherein the preset dictionary is pre-configured with a mapping relationship between the data point and the control point.

[0047] Specifically, the preset dictionary is traversed according to the data point position, and the target key-value pair corresponding to the data point position is screened in the preset dictionary; the control point position is determined according to the target key-value pair, in which the data point position is the key and the control point position is the value, and the control point position corresponding to the data point position can be quickly found according to the data point position.

[0048] In some optional embodiments, determining the control point corresponding to the data point by dictionary query also includes: querying the data point in a preset dictionary to obtain feedback data point and control data point that match the data point, the preset dictionary is pre-configured with a mapping relationship between the data point and the feedback data point and the control data point, and each data point in the preset dictionary corresponds to a feedback data point and a control point.

[0049] Specifically, the preset dictionary is traversed according to the data point, and the target key-value pairs corresponding to the data point are filtered in the preset dictionary; the feedback data point and the control point are determined according to the target key-value pairs. In the target key-value pairs, the data point is the key, and the feedback data point and the control point are the values. According to the data point, the feedback data point and the control point corresponding to the data point can be quickly found.

[0050] In some optional embodiments, determining the control point corresponding to the data point by dictionary query also includes: obtaining first configuration data from a preset database and storing it in a preset storage unit, marking the first configuration data in the preset storage unit to obtain feedback data points, querying the feedback data points in a preset dictionary to obtain control points corresponding to the feedback data points, and pre-configured in the preset dictionary a mapping relationship between feedback data points and control points.

[0051] Specifically, the preset dictionary is traversed according to the feedback data point, and the target key-value pairs corresponding to the data point are screened in the preset dictionary; the control point is determined according to the target key-value pairs, in which the feedback data point is the key and the control point is the value, and the control point corresponding to the data point can be quickly found according to the feedback data point.

[0052] Among them, the preset storage unit represents an external storage unit for temporarily storing the first configuration data, and both the feedback data point and the data point mark the first configuration data, but the data point marks the position of the first configuration data in the preset database, while the feedback data point marks the position of the first configuration data in the preset storage unit.

[0053] In some optional implementations, the control point corresponding to the data point is queried or fed back through hash mapping.

[0054] Step S103: encapsulate the first configuration data and the first control instruction into a second control instruction, wherein the second control instruction includes second configuration data, and the second configuration data is second initialization configuration data obtained by processing the first configuration data.

[0055] In some optional implementations, encapsulating the first configuration data and the first control instruction into the second control instruction includes: performing data type conversion on the first configuration data and the first control instruction to obtain the second control instruction in a preset format.

[0056] The data type conversion may be to convert all numerical character strings into integers or floating-point numbers, and to convert the first configuration data and the first control instruction into a unified format for convenience of subsequent processing.

[0057] In some optional implementations, encapsulating the first configuration data and the first control instruction into a second control instruction further includes: performing data format verification and data integrity check on the first configuration data and the first control instruction to obtain the second control instruction.

[0058] Among them, data format verification means verifying whether the format of the data meets expectations, for example, checking whether it is a valid JSON format, whether it conforms to a preset data template, checking whether it is a valid 16-bit integer digital format, etc.

[0059] Data integrity check ensures that the data is complete and has no missing values ​​or outliers. For example, complex data cleaning and anomaly detection algorithms can be used to perform data integrity checks.

[0060] The embodiment of the present invention performs data type conversion on the first configuration data and the first control instruction to obtain a second control instruction in a preset format, thereby ensuring the consistency of the configuration data and the control instruction, while strengthening the confidentiality of the data transmission process, performing data format verification and data integrity check on the first configuration data and the first control instruction to obtain the second control instruction, thereby ensuring that the configuration data is complete and correct without missing values ​​and abnormal values.

[0061] Step S104: Send the second control instruction to the business model, so that the business model runs in an online operation mode based on the second configuration data.

[0062] Among them, the second control instruction is stored in a preset storage unit, and the second control instruction is sent to the business model in the online operation mode, including: extracting the second control instruction from the preset storage unit, storing it in a preset database, and sending the second control instruction to the business model in the online operation mode, so that the business model calls the second configuration data in the preset database according to the second control instruction and starts using the second configuration data.

[0063] For example, Figure 2 As shown, it is a migration link diagram of configuration data. The lower computer transfers the first configuration data from the business model in the offline operation mode to the preset database, and marks the first configuration data to obtain the data point, and determines the control point corresponding to the data point by dictionary query, and determines the first control instruction marked by the control point, processes the first configuration data and the first control instruction, obtains the second control instruction, writes the second control value instruction back to the position corresponding to the control point in the preset database, and sends the second control instruction to the business model to make the second configuration data effective in the business model.

[0064] The configuration data migration method provided in this embodiment obtains the first configuration data transferred from the business model in the offline operation mode to the preset database from the preset database, determines the data point for marking the first configuration data, and determines the control point corresponding to the data point by dictionary query, thereby improving the efficiency of querying the data point, and conveniently adding new data points and control points, which is convenient for maintenance and expansion. The present invention determines the first control instruction marked by the control point, encapsulates the first configuration data and the first control instruction into the second control instruction, and the second control instruction contains the second configuration data, and encapsulates the first configuration data and the first control instruction to improve the confidentiality of the data transmission process. The present invention sends the second control instruction to the business model so that the business model runs in the online operation mode based on the second configuration data. Compared with the manual input of configuration data in the related art, the present invention reduces the tediousness and error rate of manual operation, solves the problem of too long time caused by manually inputting a large amount of configuration data, provides a strong guarantee for the efficient operation of the business model, improves the utilization rate of the configuration data, and realizes the smooth transition of the business model from the offline operation mode to the online operation mode.

[0065] In this embodiment, a configuration data migration method is provided, which can be used for a computer device, and the computer device can be a lower computer. Figure 3 is a flow chart of another method for migrating configuration data according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0066] Step S301, obtaining first configuration data from a preset database, and determining data points for marking the first configuration data; the first configuration data is first initialization configuration data transferred from a business model in an offline operation mode to the preset database.

[0067] Specifically, the above step S301 includes:

[0068] Step S3011, obtaining first configuration data from a preset database, and storing the first configuration data in a preset storage unit.

[0069] Step S3012: Mark the data points of the first configuration data in a preset database.

[0070] Step S302: Determine the control point corresponding to the data point by dictionary query, and determine the first control instruction marked by the control point.

[0071] Specifically, the above step S302 includes:

[0072] Step S3021, obtaining feedback data points that match the data points, where the feedback data points are data points used to mark the first configuration data in a preset storage unit.

[0073] Wherein, the first configuration data is marked in a preset storage unit to obtain feedback data points that match the data points.

[0074] Step S3022: query the feedback data point in the preset dictionary to determine the control point corresponding to the feedback data point. The preset dictionary stores the mapping relationship between the feedback data point and the control point.

[0075] Among them, the control point corresponding to the feedback data point can be queried through hash mapping.

[0076] Step S303: Encapsulate the first configuration data and the first control instruction into a second control instruction, wherein the second control instruction includes second configuration data, and the second configuration data is second initialization configuration data obtained by processing the first configuration data. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0077] Step S304: Send the second control instruction to the business model, so that the business model runs in an online operation mode based on the second configuration data.

[0078] Specifically, the above step S304 includes:

[0079] Step S3041, extracting the second control instruction from the preset storage unit and storing it in the preset database.

[0080] The second control instruction is extracted from the preset storage unit, and written into the position corresponding to the control point in the preset database. Here, it can be considered to use pipeline (pipeline command) for batch writing to improve efficiency.

[0081] Step S3042: Send the second control instruction to the business model, so that the business model calls the second configuration data in the preset database to run in the online operation mode.

[0082] The configuration data migration method provided in this embodiment obtains the first configuration data from the preset database and stores it in the preset storage unit, marks the data points of the first configuration data in the preset database, ensures the accuracy of the first configuration data, and facilitates the subsequent acquisition of the feedback data points corresponding to the data points according to the data points. The preset dictionary stores the mapping relationship between the feedback data points and the control points, queries the feedback data points in the preset dictionary, determines the control points corresponding to the feedback data points, and improves the efficiency of obtaining the control points. At the same time, the preset dictionary can add the feedback data points, control points and other control logics that need to be used at any time, which is convenient for later maintenance and expansion.

[0083] In this embodiment, a configuration data migration method is provided, which can be used for a computer device, and the computer device can be a lower computer. Figure 4 is a flowchart of another method for migrating configuration data according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0084] Step S401, the script program reads the data in the preset database and obtains the data points.

[0085] Here, the data in the preset database is read according to the Get command, and the data is marked to obtain the data point.

[0086] Step S402: Search in a preset dictionary according to the data point to obtain the feedback data point and the control point corresponding to the data point.

[0087] Step S403, performing protocol parsing and unpacking processing on the data corresponding to the feedback data point and the data corresponding to the control point to obtain the original value of the data.

[0088] Exemplarily, the data corresponding to the feedback data point 1567 is subjected to protocol parsing and unpacking processing, and the original value of the feedback data is obtained as: 2#SVG, and the data corresponding to the control point 1570 is subjected to protocol parsing and unpacking processing, and the original value of the control data is obtained as: 2#SVG.

[0089] Step S404, compare the original data values ​​of the feedback data point and the control point, if they are inconsistent, generate a target control instruction, the target control instruction is used to represent the control instruction to write the original data value corresponding to the feedback data point into the position corresponding to the control point.

[0090] If the original data values ​​of the feedback data point and the control point are consistent, a data consistency prompt message is generated.

[0091] In some optional implementations, if there is inconsistency, the original value of the feedback data and the control instruction are encapsulated by protocol to generate a target control instruction.

[0092] Step S405, writing the original data value corresponding to the feedback data point into the corresponding position of the control point in the preset database according to the target control instruction.

[0093] Among them, the one-click parameter script program sends the target control instructions to the parameter model so that the parameter model runs according to the original value of the data.

[0094] like Figure 5 As shown, it is a data instruction upload and download link diagram, the preset database is used to upload the first configuration parameters obtained from the business model in the offline running state, and the one-key parameter sending script program encapsulates the first configuration parameters to obtain the second configuration parameters, and sends the second configuration parameters to the business model in the online running mode to make the second configuration data effective in the business model.

[0095] In an embodiment of the present invention, the migration method of the configuration data can be applied in different scenarios. For a real-time traffic monitoring system, it is necessary to monitor traffic flow and road condition information in real time. By using the Redis database as a data storage and processing platform, the following functions can be achieved: the monitoring data of each traffic monitoring device (such as a camera, a sensor) is stored in the Redis database in JSON format, and the data point used to mark the monitoring data is determined; through a dictionary query, the control point corresponding to the data point is determined, and the first control instruction for the control point mark is determined, the control point represents an identifier for marking the parameters of the control traffic facility, and the first control instruction represents an instruction for changing the parameters of the control traffic facility; the monitoring data and the first control instruction are encapsulated as a second control instruction, and the second control instruction is sent to the traffic facility so that the traffic facility adjusts the parameters according to the second control instruction.

[0096] Exemplarily, when traffic flow data is monitored, the traffic flow data is stored in a Redis database, and the traffic flow data is marked to obtain data points. Through dictionary query, the control points corresponding to the data points are determined, and the first control instruction marked by the control points is determined. The traffic flow data and the first control instruction are encapsulated into a second control instruction, and the second control instruction is sent to the traffic lights so that the traffic lights adjust the number of seconds according to the second control instruction.

[0097] For online e-commerce platforms, it is necessary to process user order information and inventory management in real time. By using the Redis database as a data storage and processing platform, the following functions can be achieved: store user order information, commodity inventory and other consumption data in the Redis database in JSON format, and determine the data point used to mark the consumption data; determine the control point corresponding to the data point through dictionary query, and determine the first control instruction marked by the control point, the control point represents the identifier used to mark the inventory parameter, and the first control instruction represents the instruction to control the change of the inventory parameter; encapsulate the consumption data and the first control instruction into the second control instruction, and send the second control instruction to the online e-commerce platform so that the online e-commerce platform can adjust the parameters according to the second control instruction.

[0098] Exemplarily, when the consumption data is the user's order quantity, the order quantity is stored in the Redis database and marked to obtain the data point. Through dictionary query, the control point corresponding to the data point is determined, and the first control instruction marked by the control point is determined. The order quantity and the first control instruction are encapsulated into a second control instruction, and the second control instruction is sent to the online e-commerce platform so that the online e-commerce platform adjusts the inventory of goods according to the second control instruction.

[0099] In this embodiment, a migration device for configuration data is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0100] This embodiment provides a configuration data migration device, such as Figure 6 As shown, including:

[0101] The data acquisition module 601 is used to acquire first configuration data from a preset database and determine data points used to mark the first configuration data; the first configuration data is the first initialization configuration data transferred from the business model in the offline operation mode to the preset database.

[0102] The dictionary query module 602 is used to determine the control point corresponding to the data point by dictionary query, and determine the first control instruction marked by the control point.

[0103] The data encapsulation module 603 is used to encapsulate the first configuration data and the first control instruction into a second control instruction, wherein the second control instruction includes second configuration data, and the second configuration data is second initialization configuration data obtained by processing the first configuration data.

[0104] The data calling module 604 is used to send the second control instruction to the business model, so that the business model runs in the online operation mode based on the second configuration data.

[0105] In some optional implementations, the data acquisition module 601 includes:

[0106] The storage unit is used to obtain the first configuration data from the preset database and store the first configuration data in the preset storage unit.

[0107] The data point marking unit is used to mark the data point of the first configuration data in the preset database.

[0108] In some optional implementations, the dictionary query module 602 includes:

[0109] The feedback data point acquisition unit is used to acquire feedback data points that match the data points, and the feedback data points are data points used to mark the first configuration data in the preset storage unit.

[0110] The control point determination unit is used to query the feedback data point in a preset dictionary to determine the control point corresponding to the feedback data point. The preset dictionary stores the mapping relationship between the feedback data point and the control point.

[0111] In some optional implementations, the data encapsulation module 603 includes:

[0112] The data type conversion unit is used to perform data type conversion on the first configuration data and the first control instruction to obtain a second control instruction in a preset format.

[0113] The verification unit is used to perform data format verification and data integrity check on the first configuration data and the first control instruction to obtain a second control instruction.

[0114] In some optional implementations, the data calling module 604 includes:

[0115] A data extraction storage unit, used to extract the second control instruction from the preset storage unit and store it in a preset database;

[0116] The instruction issuing unit is used to issue the second control instruction to the business model, so that the business model calls the second configuration data in the preset database to run in the online operation mode.

[0117] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0118] The configuration data migration device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0119] The embodiment of the present invention also provides a computer device having the above Figure 6 The configuration data shown is migrated by the device.

[0120] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0121] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0122] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0123] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device 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 combinations thereof.

[0124] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0125] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0126] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0127] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0128] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for migrating configuration data, characterized in that: The method comprises: Acquire first configuration data from a preset database, and determine a data point for marking the first configuration data; the first configuration data is first initialization configuration data transferred from a business model in an offline operation mode to the preset database; Determine the control point corresponding to the data point by means of dictionary query, and determine the first control instruction marked by the control point; encapsulating the first configuration data and the first control instruction into a second control instruction, wherein the second control instruction includes second configuration data, and the second configuration data is second initialization configuration data obtained by processing the first configuration data; The second control instruction is sent to the business model, so that the business model runs in an online operation mode based on the second configuration data.

2. The method according to claim 1, characterized in that The obtaining of the first configuration data from the preset database and determining the data point for marking the first configuration data includes: Acquire the first configuration data from the preset database, and store the first configuration data in a preset storage unit; The data points of the first configuration data are marked in the preset database.

3. The method according to claim 2, characterized in that The determining the control point corresponding to the data point by means of dictionary query includes: Acquire feedback data points that match the data points, the feedback data points being data points used to mark the first configuration data in the preset storage unit; The feedback data point is searched in a preset dictionary to determine the control point corresponding to the feedback data point, wherein the preset dictionary stores a mapping relationship between the feedback data point and the control point.

4. The method according to any one of claims 1 to 3, characterized in that The encapsulating the first configuration data and the first control instruction into a second control instruction includes: Data type conversion is performed on the first configuration data and the first control instruction to obtain the second control instruction in a preset format.

5. The method according to claim 4, characterized in that The encapsulating the first configuration data and the first control instruction into a second control instruction further includes: Perform data format verification and data integrity check on the first configuration data and the first control instruction to obtain the second control instruction.

6. The method according to claim 2 or 3, characterized in that: The sending the second control instruction to the business model so that the business model runs in an online operation mode based on the second configuration data includes: extracting the second control instruction from the preset storage unit and storing it in the preset database; The second control instruction is sent to the business model, so that the business model calls the second configuration data in the preset database to run in an online operation mode.

7. A configuration data migration device, characterized in that: The device comprises: A data acquisition module, used to acquire first configuration data from a preset database, and determine a data point for marking the first configuration data; the first configuration data is first initialization configuration data transferred from a business model in an offline operation mode to the preset database; A dictionary query module, used to determine the control point corresponding to the data point by means of dictionary query, and determine the first control instruction marked by the control point; a data encapsulation module, configured to encapsulate the first configuration data and the first control instruction into a second control instruction, wherein the second control instruction includes second configuration data, and the second configuration data is second initialization configuration data obtained by processing the first configuration data; A data calling module is used to send the second control instruction to the business model so that the business model runs in an online operation mode based on the second configuration data.

8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the configuration data migration method according to any one of claims 1 to 6 by executing the computer instructions.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the configuration data migration method according to any one of claims 1 to 6.

10. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the configuration data migration method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data migration method and device, electronic equipment and storage medium

    CN112199355A

  • Method and device for migrating data, equipment and storage medium

    CN113792024A

  • Data migration method and device, storage medium and program product

    CN114356891A

  • Data migration method and device, electronic equipment and storage medium

    CN116340290A

  • Data migration method and device, electronic equipment and computer readable storage medium

    CN116737693A