Migration method, device, and apparatus for configuration data, storage medium, and program product

By retrieving configuration data from a pre-set database and using dictionary lookups to determine control points, and then encapsulating these into control commands for automated migration to the business model, the problems of excessively long processing times and high error rates associated with manual input are solved, enabling efficient operation of the business model.

CN119376818BActive Publication Date: 2026-01-27CHINA THREE GORGES CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The process of manually entering a large amount of initialization configuration data is time-consuming and error-prone, affecting the timely startup and normal operation of the business model.

Method used

By retrieving configuration data from a pre-set database, using dictionary lookups to determine data points and control points, encapsulating them into control commands, and sending them to the business model, automated data migration is achieved.

Benefits of technology

It improved data input efficiency, reduced the tediousness and error rate of manual operations, and ensured a smooth transition of the business model from offline to online operation mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376818B_ABST
    Figure CN119376818B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of data processing, and discloses a configuration data migration method, device, equipment, storage medium and program product, the configuration data migration method comprises: obtaining first configuration data from a preset database, and determining a data point position for marking the first configuration data; in a manner of dictionary query, determining a control point position corresponding to the data point position, and determining a first control instruction marked by the control point position; encapsulating the first configuration data and the first control instruction as a second control instruction, the second control instruction containing second configuration data; and issuing the second control instruction to a service model in an online running mode, so that the second configuration data takes effect in the service model. The present application transfers the initialization configuration data in the service model in an offline running mode to the service model in an online running mode, thereby overcoming the problems of low efficiency and easy errors in manual input of the initialization configuration data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and more specifically to methods, apparatus, devices, storage media, and program products for migrating configuration data. Background Technology

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

[0003] In offline operation mode, the business model operates independently of external systems, relying on a large amount of pre-built initial 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, thus enabling it to work independently without network connectivity or external system support. Online operation mode, on the other hand, relies on a management and control platform, dynamically adjusting and optimizing the business model by receiving and sending data in real time. In this mode, the business model needs to perform calculations based on data input provided by the management and control platform and output the results to the platform for further analysis or decision-making.

[0004] While the dual-operation mechanism provides great flexibility and adaptability for the application of business models, there is a significant drawback in the online operation mode: the process of switching from offline to online operation mode requires updating the initialization configuration data. In related technologies, the 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. It is not only inefficient, but also increases the risk of human error. Furthermore, the delay in data input can 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 method, apparatus, device, storage medium and program product for migrating configuration data, so as 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 data points for marking the first configuration data; the first configuration data is first initialization configuration data transferred from a business model in offline operation mode to the preset database; determining control points corresponding to the data points and determining a first control instruction for marking the control points by means of dictionary lookup; encapsulating the first configuration data and the first control instruction into a second control instruction, the second control instruction containing second configuration data, the second configuration data being second initialization configuration data obtained after processing the first configuration data; and issuing the second control instruction to the business model so that the business model runs in online operation mode based on the second configuration data.

[0007] This invention retrieves first configuration data transferred from an offline business model to a preset database. It then determines data points used to mark this first configuration data. Using a dictionary lookup, it identifies corresponding control points, improving the efficiency of data point lookup and facilitating the addition of new data and control points for maintenance and expansion. The invention determines a first control instruction for the control point marking and encapsulates the first configuration data and the first control instruction into a second control instruction containing the second configuration data. This encapsulation enhances the confidentiality of data transmission. The invention then sends the second control instruction to the business model, enabling it to run in online mode based on the second configuration data. Compared to manually inputting configuration data in related technologies, this invention reduces the tediousness and error rate of manual operations, solves the problem of excessive time consumption caused by manually inputting large amounts of configuration data, provides strong support for the efficient operation of the business model, improves the utilization rate of configuration data, and achieves a smooth transition from offline to online operation mode.

[0008] In one optional implementation, obtaining first configuration data from a preset database and determining data points for marking the first configuration data includes: obtaining the first configuration data from the preset database and storing the first configuration data in a preset storage unit; and marking the data points of the first configuration data in the preset database.

[0009] The present invention retrieves the first configuration data from the preset database and stores it in the preset storage unit. The data points of the first configuration data are marked in the preset database to ensure the accuracy of the first configuration data and facilitate the subsequent retrieval of the feedback data points corresponding to the data points.

[0010] In one optional implementation, the control point corresponding to the data point is determined by dictionary lookup, including: obtaining the feedback data point that matches the data point, wherein the feedback data point is a data point used to mark the first configuration data in a preset storage unit; and querying the feedback data point in a preset dictionary to determine the control point corresponding to the feedback data point, wherein the preset dictionary stores the mapping relationship between the feedback data point and the control point.

[0011] The preset dictionary of this invention stores the mapping relationship between feedback data points and control points. By querying the preset dictionary for feedback data points, the corresponding control points can be determined, thereby improving the efficiency of control point acquisition. At the same time, the preset dictionary can be used to add feedback data points, control points and other control logic as needed, which facilitates later maintenance and expansion.

[0012] In one optional implementation, the first configuration data and the first control instruction are encapsulated into a second control instruction, including: converting the data types of the first configuration data and the first control instruction to obtain a second control instruction in a preset format.

[0013] This invention performs data type conversion on the first configuration data and the first control command to obtain a second control command in a preset format, ensuring the consistency between the configuration data and the control command, while enhancing the confidentiality of the data transmission process.

[0014] In one optional implementation, the first configuration data and the first control instruction are encapsulated into a second control instruction, and the method further includes: performing data format verification and data integrity checks on the first configuration data and the first control instruction to obtain the second control instruction.

[0015] This invention performs data format verification and data integrity checks on the first configuration data and the first control command to obtain the second control command, ensuring that the configuration data is complete and error-free, without missing or outlier values.

[0016] In one optional implementation, the second control instruction is sent to the business model so that the business model runs in online operation mode based on the second configuration data, including: retrieving the second control instruction from a preset storage unit and storing it in a preset database; and 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 online operation mode.

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

[0018] Thirdly, the present invention provides a computer device, comprising: 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 computer instructions to perform the configuration data migration method of the first aspect or any corresponding embodiment described above.

[0019] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the configuration data migration method of the first aspect or any corresponding embodiment thereof.

[0020] Fifthly, the present invention provides a computer program product, including computer instructions for causing a computer to execute the configuration data migration method of the first aspect or any corresponding embodiment thereof. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the specific embodiments or related technologies of the present invention, the drawings used in the description of the specific embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0022] Figure 1 This is a flowchart illustrating a method for migrating configuration data according to an embodiment of the present invention;

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

[0024] Figure 3 This is a flowchart illustrating another method for migrating configuration data according to an embodiment of the present invention;

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

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

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

[0028] Figure 7 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort 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 applied 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. Business models, which handle complex business processes, can be artificial intelligence models, mathematical models, etc. The operational mechanism of a business model is crucial to its efficiency and accuracy, especially in scenarios requiring the processing of large amounts of data and high-precision calculations. Currently, many business model designs consider flexibility and scalability to adapt to different operating environments and needs. In this context, the dual operational mechanism of business models—offline and online operation—has become an important means of solving complex problems.

[0031] In offline operation mode, the model operates independently of external systems, relying on a large amount of pre-built initial 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, thus enabling it to work independently without network connectivity or external system support. Offline operation mode is suitable for scenarios requiring a high degree of autonomy and rapid response, such as rapid decision support in emergency situations.

[0032] The online operation mode relies on a 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 performs calculations based on the data input provided by the management and control platform, and the results are output to the business model for further analysis or decision-making. Due to its ability to fully utilize external data and provide real-time feedback, the online operation mode performs exceptionally well in scenarios requiring high precision and dynamic adaptability, such as real-time trading strategy adjustments in financial markets and real-time monitoring of industrial automated production lines.

[0033] While the dual-operation mechanism provides significant flexibility and adaptability for business model applications, existing online operation modes have a significant drawback: the process of manually inputting large amounts of initialization configuration data is time-consuming and error-prone. Specifically, when the business model needs to run on the management platform, users must manually input 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] Furthermore, with the increasing complexity of business models and the dramatic increase in the amount of configuration data, manual input is becoming increasingly difficult to meet actual needs.

[0035] This invention provides a method for migrating configuration data, which improves data input efficiency by migrating initial configuration data.

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

[0037] This embodiment provides a method for migrating configuration data, which can be used in a computer device, which may be a lower-level machine. Figure 1 This is a flowchart of a configuration data migration method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:

[0038] Step S101: Obtain 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 offline operation mode to the preset database.

[0039] The preset database can be a remote dictionary server (Redis) database, and the first configuration data is the initialization configuration parameters used by the business model in offline operation mode.

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

[0041] In some optional implementations, the data point is an identifier for marking the first configuration data, including a flag bit and a data quantity. The marking method of the data point can be any marking method. For example, the marking method of the data point can 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. For example, the data point can be (16500, 127), which means that the data at position 16500 in the Redis database is used as the flag bit, 127 data are taken to obtain the first configuration data, and the 127 first configuration data starting from position 16500 are marked.

[0042] In some optional implementations, first configuration data is retrieved from a preset database using a Redis database Get command, and data points for marking the first configuration data are determined. Optionally, the Get command in this embodiment can be, for example, the mget (batch operation) command.

[0043] Specifically, the Redis database's Get command is used to retrieve the first configuration data from a preset database, thereby reducing network latency and improving data retrieval speed.

[0044] Step S102: Determine the control point corresponding to the data point and the first control command for the control point marker by means of dictionary lookup.

[0045] Among them, the control point is an identifier used to mark the storage location of the configuration data used in the online operation mode in the preset database, and the first control instruction is an instruction to control the storage of the first configuration data in the location of the control point in the preset database.

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

[0047] Specifically, the system iterates through a preset dictionary based on the data points and filters the target key-value pairs corresponding to the data points in the preset dictionary. Based on the target key-value pairs, the control points are determined. In the target key-value pairs, the data points are the keys and the control points are the values. Based on the data points, the control points corresponding to the data points can be found quickly.

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

[0049] Specifically, the system iterates through a preset dictionary based on the data points and filters the target key-value pairs corresponding to the data points. Based on the target key-value pairs, the feedback data points and control points are determined. In the target key-value pairs, the data points are the keys, and the feedback data points and control points are the values. Based on the data points, the corresponding feedback data points and control points can be found quickly.

[0050] In some optional implementations, determining the control point corresponding to the data point by dictionary lookup further includes: obtaining the first configuration data from the preset database and storing it in the preset storage unit; marking the first configuration data in the preset storage unit to obtain the feedback data point; querying the feedback data point in the preset dictionary to obtain the control point corresponding to the feedback data point; wherein the preset dictionary is pre-configured with a mapping relationship between the feedback data point and the control point.

[0051] Specifically, the system iterates through a preset dictionary based on the feedback data points and filters the target key-value pairs corresponding to the data points in the preset dictionary. Based on the target key-value pairs, the control points are determined. In the target key-value pairs, the feedback data points are the keys and the control points are the values. Based on the feedback data points, the control points corresponding to the data points can be found quickly.

[0052] Here, the preset storage unit refers to the external storage unit that temporarily stores the first configuration data. Both the feedback data point and the data point mark the first configuration data. However, 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 alternative implementations, the control point corresponding to the data point or feedback data point is queried through a hash map.

[0054] Step S103: Encapsulate the first configuration data and the first control instruction into a second control instruction. The second control instruction contains the second configuration data, which is the second initialization configuration data obtained after processing the first configuration data.

[0055] In some optional implementations, the first configuration data and the first control instruction are encapsulated into a second control instruction, including: converting the data types of the first configuration data and the first control instruction to obtain a second control instruction in a preset format.

[0056] Among them, data type conversion can convert all numeric strings into integers or floating-point numbers, and convert the first configuration data and the first control instructions into a unified format for easier subsequent processing.

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

[0058] Among them, data format validation 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, and whether it is a valid 16-bit integer format.

[0059] Data integrity checks ensure that data is complete and error-free, with no missing or outliers. For example, sophisticated data cleaning and anomaly detection algorithms can be used to perform data integrity checks.

[0060] In this embodiment of the invention, the first configuration data and the first control command are converted into data types to obtain a second control command in a preset format, ensuring the consistency between the configuration data and the control command, while strengthening the confidentiality of the data transmission process. The first configuration data and the first control command are verified for data format and checked for data integrity to obtain the second control command, ensuring that the configuration data is complete and error-free, without missing or outlier values.

[0061] Step S104: The second control command is sent to the business model so that the business model runs in online mode based on the second configuration data.

[0062] The second control instruction is stored in a preset storage unit. Sending the second control instruction to the business model in the online operation mode includes: extracting the second control instruction from the preset storage unit and storing it in a preset database; sending the second control instruction to the business model in the online operation mode so that the business model can call the second configuration data in the preset database according to the second control instruction and start using the second configuration data.

[0063] For example, such as Figure 2 The diagram shows the migration path of configuration data. The lower-level machine transfers the first configuration data from the business model in offline operation mode to the preset database, marks the first configuration data to obtain data points, determines the control points corresponding to the data points and the first control instruction marked by the control points through dictionary lookup, processes the first configuration data and the first control instruction to obtain 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 so that the second configuration data takes effect in the business model.

[0064] The configuration data migration method provided in this embodiment retrieves first configuration data from a business model operating in offline mode and transfers it to the preset database. It then determines data points used to mark the first configuration data. This invention uses a dictionary lookup to determine the corresponding control points, improving the efficiency of data point lookup and facilitating the addition of new data and control points for maintenance and expansion. The invention determines a first control instruction for the control point marking, encapsulates the first configuration data and the first control instruction into a second control instruction, which contains the second configuration data. This encapsulation process enhances the confidentiality of data transmission. The invention then sends the second control instruction to the business model, enabling it to run in online mode based on the second configuration data. Compared to manually inputting configuration data in related technologies, this invention reduces the tediousness and error rate of manual operations, solves the problem of excessive time consumption caused by manually inputting large amounts of configuration data, provides strong support for the efficient operation of the business model, improves the utilization rate of configuration data, and achieves a smooth transition of the business model from offline to online operation mode.

[0065] This embodiment provides a method for migrating configuration data, which can be used in a computer device, which may be a lower-level machine. Figure 3 This is a flowchart of another configuration data migration method according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps:

[0066] Step S301: Obtain 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 offline operation mode to the preset database.

[0067] Specifically, step S301 includes:

[0068] Step S3011: Obtain first configuration data from a preset database and store the first configuration data in a preset storage unit.

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

[0070] Step S302: Determine the control point corresponding to the data point and the first control command for the control point marker by means of dictionary lookup.

[0071] Specifically, step S302 includes:

[0072] Step S3021: Obtain feedback data points that match the data points. The feedback data points are data points used to mark the first configuration data in the preset storage unit.

[0073] In this process, the first configuration data is marked in the preset storage unit to obtain the feedback data point that matches the data point.

[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 these, the control points corresponding to the feedback data points can be queried through hash mapping.

[0076] Step S303: The first configuration data and the first control instruction are encapsulated into a second control instruction. The second control instruction contains the second configuration data, which is the second initialization configuration data obtained after processing the first configuration data. For details, please refer to [link to relevant documentation]. Figure 1 Step S103 of the illustrated embodiment will not be described again here.

[0077] Step S304: The second control command is sent to the business model so that the business model runs in online mode based on the second configuration data.

[0078] Specifically, step S304 includes:

[0079] Step S3041: Extract the second control command from the preset storage unit and store it in the preset database.

[0080] The second control command is extracted from the preset storage unit and written to the corresponding position of the control point in the preset database. Here, a pipeline command can be used to write in batches to improve efficiency.

[0081] Step S3042: The second control command is sent to the business model so that the business model calls the second configuration data in the preset database to run in online mode.

[0082] The configuration data migration method provided in this embodiment retrieves first configuration data from a preset database and stores it in a preset storage unit. Data points of the first configuration data are marked in the preset database to ensure the accuracy of the first configuration data and facilitate subsequent retrieval of corresponding feedback data points. A preset dictionary stores the mapping relationship between feedback data points and control points. By querying the preset dictionary for feedback data points, the corresponding control points are determined, improving the efficiency of control point retrieval. Furthermore, the preset dictionary allows for the addition of necessary feedback data points, control points, and other control logic at any time, facilitating future maintenance and expansion.

[0083] This embodiment provides a method for migrating configuration data, which can be used in a computer device, which may be a lower-level machine. Figure 4 This is a flowchart of another configuration data migration method according to an embodiment of the present invention, such as... Figure 4 As shown, the process includes the following steps:

[0084] In step S401, the script program reads data from the preset database and obtains the data points.

[0085] Specifically, the Get command is used to read data from a preset database and mark the data to obtain data points.

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

[0087] Step S403: Perform protocol parsing and depackaging on the data corresponding to the feedback data points and the data corresponding to the control points to obtain the original data values.

[0088] For example, the data corresponding to feedback data point 1567 is parsed and unpacked to obtain the original value of the feedback data: 2#SVG. The data corresponding to control point 1570 is parsed and unpacked to obtain the original value of the control data: 2#SVG.

[0089] Step S404: Compare the original data values ​​of the feedback data points and the control points. If they are inconsistent, generate a target control command. The target control command is used to represent the control command to write the original data value corresponding to the feedback data point to the position corresponding to the control point.

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

[0091] In some alternative implementations, if there is a discrepancy, the original values ​​of the feedback data and the control commands are encapsulated in a protocol to generate the target control commands.

[0092] Step S405: Write 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 command.

[0093] Among them, the one-click parameter distribution script program sends the target control command to the parameter model so that the parameter model can run according to the original data values.

[0094] like Figure 5 The diagram shows the data command upload and download link. The preset database is used to upload the first configuration parameters obtained from the business model in the offline running state. The one-click parameter download script program encapsulates the first configuration parameters to obtain the second configuration parameters, and then downloads the second configuration parameters to the business model in the online running mode so that the second configuration data takes effect in the business model.

[0095] In this embodiment of the invention, the configuration data migration method can be applied to different scenarios. For real-time traffic monitoring systems, it is necessary to monitor traffic flow and road condition information in real time. By using a Redis database as a data storage and processing platform, the following functions can be achieved: The monitoring data of various traffic monitoring devices (such as cameras and sensors) are stored in the Redis database in JSON format, and data points for marking the monitoring data are determined; through dictionary lookup, the control points corresponding to the data points are determined, as well as the first control instruction for marking the control points. The control point represents an identifier used to mark the parameters of the traffic facilities, and the first control instruction represents an instruction to change the parameters of the traffic facilities; the monitoring data and the first control instruction are encapsulated into a second control instruction, and the second control instruction is sent to the traffic facilities so that the traffic facilities can adjust their parameters according to the second control instruction.

[0096] For example, when traffic flow data is detected, the traffic flow data is stored in a Redis database and marked to obtain data points. The corresponding control points are determined by dictionary lookup, and a first control instruction for the control point marking 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 can adjust the number of seconds according to the second control instruction.

[0097] For online e-commerce platforms, real-time processing of user order information and inventory management is required. Using Redis as a data storage and processing platform, the following functions can be achieved: User order information, product inventory, and other consumption data are stored in Redis in JSON format, and data points for marking these consumption data are identified; through dictionary lookup, control points corresponding to the data points are determined, along with the first control instruction marking the control points. The control point represents an identifier used to mark inventory parameters, and the first control instruction represents an instruction to change the inventory parameters; the consumption data and the first control instruction are encapsulated into a second control instruction, which is then sent to the online e-commerce platform so that the platform can adjust parameters according to the second control instruction.

[0098] For example, when the consumption data is the user's order volume, the order volume is stored in the Redis database and marked to obtain data points. The control point corresponding to the data point is determined by dictionary lookup, as well as the first control instruction marked by the control point. The order volume 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 can adjust the product inventory according to the second control instruction.

[0099] This embodiment also provides a configuration data migration device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

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

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

[0102] The dictionary lookup module 602 is used to determine the control point corresponding to the data point and the first control instruction for the control point marker by means of dictionary lookup.

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

[0104] The data retrieval module 604 is used to send the second control command to the business model so that the business model can run in online mode based on the second configuration data.

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

[0106] The storage unit is used to retrieve first configuration data from a 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 points of the first configuration data in the preset database.

[0108] In some alternative implementations, the dictionary lookup module 602 includes:

[0109] The feedback data point acquisition unit is used to acquire feedback data points that match the data points. 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 points in a preset dictionary and determine the control points corresponding to the feedback data points. The preset dictionary stores the mapping relationship between feedback data points and control points.

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

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

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

[0114] In some alternative implementations, the data retrieval module 604 includes:

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

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

[0117] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

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

[0119] This invention also provides a computer device having the above-described features. Figure 6 The configuration data migration device shown.

[0120] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 7 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 7 Take a processor 10 as an example.

[0121] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0122] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.

[0123] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

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

[0125] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.

[0126] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0127] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

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

Claims

1. A method for migrating configuration data, characterized in that, The method includes: The system retrieves first configuration data from a preset database and determines data points for marking the first configuration data; the first configuration data is first initialization configuration data transferred from a business model in offline operation mode to the preset database. The control point corresponding to the data point is determined by dictionary lookup, and the first control instruction for the control point is determined; the control point is an identifier used to mark the storage location of the configuration data used in the online operation mode in the preset database, and the first control instruction is an instruction to control the storage of the first configuration data in the location of the control point in the preset database. The first configuration data and the first control instruction are encapsulated into a second control instruction, the second control instruction containing the second configuration data, the second configuration data being the second initialization configuration data obtained after processing the first configuration data; The second control command is sent to the business model so that the business model runs in online mode based on the second configuration data.

2. The method according to claim 1, characterized in that, The step of obtaining first configuration data from a preset database and determining data points for marking the first configuration data includes: The first configuration data is obtained from the preset database, and the first configuration data is stored in the 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 step of determining the control point corresponding to the data point through dictionary lookup includes: Obtain feedback data points that match the data points, wherein the feedback data points are data points used to mark the first configuration data in the preset storage unit; The feedback data point is queried 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.

4. The method according to any one of claims 1 to 3, characterized in that, The step of encapsulating the first configuration data and the first control command into a second control command includes: The first configuration data and the first control instruction are converted into data types to obtain the second control instruction in a preset format.

5. The method according to claim 4, characterized in that, The step of encapsulating the first configuration data and the first control command into a second control command further includes: The first configuration data and the first control command are subjected to data format verification and data integrity checks to obtain the second control command.

6. The method according to claim 2 or 3, characterized in that, The step of sending the second control command to the business model so that the business model runs in online operation mode based on the second configuration data includes: The second control command is extracted from the preset storage unit and stored in the preset database; The second control command is sent to the business model so that the business model can call the second configuration data in the preset database to run in online mode.

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

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

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the method for migrating configuration data as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the method for migrating configuration data as described in any one of claims 1 to 6.

Citation Information

Patent Citations

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

    CN116340290A

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

    CN116737693A