Page configuration data increment processing method and device, equipment and medium
Through the method of timer control and preset mapping, the page configuration software performance reduction caused by high incremental push frequency is solved, real-time interface response and stable updates are achieved, and the system's operating efficiency and user experience are improved.
Patent Information
- Application Number
- CN202510051356.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-07-25
AI Technical Summary
When the incremental push frequency is high, the page configuration software frequently receives and processes incremental data, resulting in performance degradation and update lag, which cannot promptly reflect the real-time status of the device, affecting the user experience.
The incremental data of the page configuration is stored in the temporary storage module through timer control, and the graphics are updated at the preset time. Combined with the preset mapping, the data is accurately matched with the relationship between the graphics, reduce the number of data accesses and the intermediate conversion links, and ensure the real-time response of the interface.
Effectively buffer data inflow pressure, prevent visual interference caused by frequent graphics updates, ensure long-term stable and efficient operation of the system, and improve user interaction experience.
Smart Images

Figure CN120372109A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and particularly to a method, device, equipment and medium for incrementally processing page configuration data. Background Art
[0002] With the progress of network technology, especially the booming development of the Internet and the Internet of Things, the page configuration technology has undergone a major revolution. It can integrate multiple communication protocols to achieve a wider range of data collection. The data sources are no longer limited to devices connected to the local serial port, and remote devices and cloud data can all be used. The interface construction has become more flexible and beautiful, supporting the addition of dynamic interactive elements, and the user experience has been greatly improved.
[0003] In terms of the data update mechanism, the incremental data update method has gradually become the mainstream. The group control system no longer pushes all data to the page configuration end at once, but only pushes the data that has undergone incremental changes. After receiving the incremental data, the page configuration end quickly integrates it into the data model to update the graphics corresponding to the incremental data and ensure that what the user sees is the latest operating condition of the device.
[0004] However, when the frequency of incremental push increases, on the one hand, frequently receiving and processing incremental data will consume a large amount of computing resources, making the page configuration software exhausted in the data integration and model update links; on the other hand, even if the software struggles to maintain the update of the data model, the subsequent operation of traversing the interface graphics one by one for update will also be stuck in a long wait due to the large number of graphics and complex update logic, resulting in page update lag, unable to reflect the real-time state of the device in a timely and accurate manner, and bringing a poor monitoring experience to users. Summary of the Invention
[0005] The present invention provides a method, device, equipment and medium for incrementally processing page configuration data to solve the defect in the prior art that the page update lags due to a high incremental push frequency, and on the basis of ensuring the real-time response of the interface to data changes, avoid the reduction of page performance caused by too high a push frequency.
[0006] The present invention provides a method for incrementally processing page configuration data, including: receiving page configuration incremental data, which is used to represent device data pushed by a group control device based on device updates; determining whether there is a timer timing, and based on the existence of timer timing, determining whether the timer timing duration reaches a preset time; if the timer timing duration does not reach the preset time, storing the page configuration incremental data in a previously created temporary storage module; otherwise, determining whether there is page configuration incremental data stored in the temporary storage module; based on the existence of page configuration incremental data stored in the temporary storage module, using the page configuration incremental data stored in the temporary storage module to update the graph corresponding to the page configuration incremental data; wherein, the graph is a visual display graph configured or updated based on previously pushed page configuration incremental data.
[0007] It should be noted that by determining whether to store the page configuration incremental data in the temporary storage module according to the timer time, the pressure of data inflow can be effectively buffered, and when the timer time reaches the preset time and there is page configuration incremental data stored in the temporary storage module, the graph is updated. On the basis of ensuring the real-time response of the interface to data changes, it avoids the situation of frequent graph updates caused by a large amount of data pouring in within a short period of time, prevents visual interferences such as graph flickering or too fast changes caused by frequent graph updates, and ensures that the system always maintains a good performance state during long-term operation.
[0008] According to the method for incrementally processing page configuration data provided by the present invention, using the page configuration incremental data stored in the temporary storage module to update the graph corresponding to the page configuration incremental data includes: according to the page configuration incremental data stored in the temporary storage module, combining with a preset mapping, updating the data model corresponding to the page configuration incremental data to update the corresponding graph; wherein, the preset mapping is previously configured based on the graph and the data model used for configuring the graph, and the data model is used to represent the data structure and logical relationship required for page configuration.
[0009] It should be noted that using the temporary storage module to centrally process incremental data avoids the inefficiency and chaos during the piecemeal processing of scattered data, and a preset mapping relationship is set to accurately guide the incremental data in the temporary storage module to the corresponding data model position, thereby driving the accurate update of the graph. Compared with the frequent scattered operations on individual data points, the number of data accesses and intermediate conversion links are greatly reduced, thereby accelerating the graph update speed; in addition, the preset mapping is pre-configured based on the graph and the data model used for configuring the graph. When the system needs to be upgraded, new graph elements are added, or the coverage range of the data model is expanded, only the preset mapping needs to be adjusted according to the established rules, which greatly reduces the system upgrade cost and extends the service life of the system.
[0010] According to a method for processing incremental page configuration data provided by the present invention, based on the incremental page configuration data stored in a temporary storage module and in combination with a preset mapping, a data model corresponding to the incremental page configuration data is updated, including: determining a graphic corresponding to the incremental page configuration data based on a key of the incremental page configuration data stored in the temporary storage module and a key in a preset mapping; and updating a data model corresponding to the graphic corresponding to the incremental page configuration data using the incremental page configuration data stored in the temporary storage module based on the graphic corresponding to the incremental page configuration data and the preset mapping.
[0011] It should be noted that by accurately matching the key of the incremental data in the temporary storage module with the key in the preset mapping, the graphics can be accurately positioned according to the association between data and graphics, and between graphics and data models, so as to efficiently update the data model corresponding to the graphics. The key-based matching method makes the relationship between data, graphics and data models looser and more flexible, reduces coupling, and improves the system's adaptability. There is no need to perform a large number of redundant search and comparison operations during data processing, thereby reducing unnecessary consumption of computing resources.
[0012] According to a method for processing page configuration data increments provided by the present invention, the page configuration increment data stored in a temporary storage module is used to update a data model corresponding to a graphic corresponding to the page configuration increment data, including: checking whether the page configuration increment data stored in the temporary storage module is data at different times of the same group control device; if so, selecting the page configuration increment data at the latest time of the same group control device as update data, and writing the update data into the corresponding data model; otherwise, using the corresponding page configuration increment data as update data, and writing the update data into the corresponding data model.
[0013] It should be noted that by checking whether the data in the temporary storage module is information of the same group control device at different times, the model can be updated by focusing on the latest data of the same group control device, avoiding invalid processing of a large amount of duplicate or outdated data, and ensuring that the screen presented by the page configuration is closely aligned with the actual situation of the device at the moment.
[0014] According to a method for processing incremental page configuration data provided by the present invention, determining whether incremental page configuration data is stored in a temporary storage module comprises: based on the fact that incremental page configuration data is not stored in the temporary storage module, clearing and terminating the timing of a timer, and not performing a graphics update; After the page configuration incremental data is stored in the temporary storage module and the graphics corresponding to the page configuration incremental data are updated using the page configuration incremental data stored in the temporary storage module, the method includes: clearing the data in the temporary storage module, clearing and ending the timing of the timer.
[0015] It should be noted that when there is no page configuration incremental data stored in the temporary storage module, it means that there is no data to be processed at present to drive the graphic update. At this time, clearing and ending the timer can avoid the situation that the system still continuously invests resources in timing operations when there is no substantial data processing requirement, and avoid introducing complex and meaningless judgment branches and subsequent operations, making the entire data processing process clearer and improving the rationality and efficiency of the entire system resource utilization.
[0016] In addition, after completing the graphic update, emptying the data in the temporary storage module in a timely manner can immediately release valuable memory space, avoid data backlog from occupying too much memory resources, prevent possible subsequent memory shortage problems, ensure the continuous, stable and smooth operation of the system, and by clearing and ending the timer, make the system quickly "return to zero", get rid of the constraints of the previous timing cycle, and be ready to efficiently handle the next round of data impact at any time, avoiding a series of logical errors that may be caused by data residue and timing confusion.
[0017] According to a page configuration data incremental processing method provided by the present invention, determining whether there is a timer timing further includes: based on the absence of timer timing, using the page configuration incremental data to update the graphic corresponding to the page configuration incremental data.
[0018] It should be noted that when there is no timer timing constraint, once there is new page configuration incremental data, the system can immediately capture and use this data to update the corresponding graphic, improving the real-time responsiveness. And without the continuous background operation of the timer, the system does not need to continuously invest additional computing resources for timing maintenance and related complex logical judgments, enabling the system to focus on core data processing and graphic presentation, ensuring the fluency and stability of the system. In addition, the immediate update of the graphic can reduce the operation lag caused by information delay, enhance the user's confidence and dependence on the system, and the interaction experience is simple and smooth. In addition, the graphic update method is referred to below and will not be repeated here.
[0019] According to a page configuration data incremental processing method provided by the present invention, after using the page configuration incremental data to update the graphic corresponding to the page configuration incremental data, it includes: starting the timer timing.
[0020] It should be noted that after the instant update of the graph is completed, a timer is started to orderly store the newly incoming data into the temporary memory within a subsequent short period of time, ensuring that even in the face of frequent push of incremental data, it can be screened and sorted in an orderly manner, avoiding the direct impact of chaotic data on the graph update mechanism, guaranteeing the quality and stability of graph update. After the timer is started, the system coordinates the data in the temporary memory within a certain time range, taking into account both the short-term real-time display requirements of the currently updated graph and leaving room for adjustment for possible large-scale data changes in the future, adapting to the dynamic changes in data traffic at different times, and ensuring the long-term stable and efficient operation of the system.
[0021] The present invention also provides a device for incrementally processing page configuration data, including: a data receiving module for receiving page configuration incremental data, where the page configuration incremental data is used to represent device data pushed by a group control device based on device updates; a timing and judgment module for determining whether there is a timer timing, and based on the existence of timer timing, determining whether the timer timing duration reaches a preset time; a data storage module for storing the page configuration incremental data into a previously created temporary storage module based on the fact that the timer timing duration does not reach the preset time; a data checking module for determining whether there is page configuration incremental data stored in the temporary storage module based on the fact that the timer timing duration reaches the preset time; a graph update module for updating the graph corresponding to the page configuration incremental data by using the page configuration incremental data stored in the temporary storage module based on the fact that there is page configuration incremental data stored in the temporary storage module; wherein the graph is a visual display graph configured or updated based on the previously pushed page configuration incremental data.
[0022] It should be noted that the data storage module decides whether to store the page configuration incremental data received by the data receiving module into the temporary storage module according to the timer time of the timing and judgment module, so as to effectively buffer the pressure of data inflow, and when the timer time reaches the preset time and the data checking module determines that there is page configuration incremental data stored in the temporary storage module, the graph update module is used to update the graph. On the basis of ensuring the real-time response of the interface to data changes, it avoids the situation of frequent graph updates caused by a large amount of data pouring in within a short period of time, prevents visual interferences such as graph flickering or too fast changes caused by frequent graph updates, and ensures that the system always maintains a good performance state during long-term operation.
[0023] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the steps of the method for incrementally processing page configuration data as described in any one of the above are implemented.
[0024] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the page configuration data incremental processing method as described in any one of the above are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0026] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0027] Figure 1 is one of the schematic flowcharts of the page configuration data incremental processing method provided by the present invention; Figure 2 is another schematic flowchart of the page configuration data incremental processing method provided by the present invention; Figure 3 is the schematic structural diagram of the page configuration data incremental processing device provided by the present invention; Figure 4 is the schematic structural diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0028] To make the objectives, technical solutions, and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention in conjunction with the drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments in the present invention belong to the scope of protection of the present invention.
[0029] Figure 1 Describe the schematic flowchart of a page configuration data incremental processing method of the present invention. The method includes: S11. Receive page configuration incremental data, where the page configuration incremental data is used to represent the device data pushed by the group control device based on device updates; S12. Determine whether there is a timer timing, and based on the existence of the timer timing, determine whether the timing duration of the timer reaches a preset time; S13. If the timing duration of the timer does not reach the preset time, store the page configuration incremental data in the temporarily stored module created earlier; otherwise, determine whether there is page configuration incremental data stored in the temporarily stored module. S14. Based on the fact that there is page configuration incremental data stored in the temporarily stored module, use the page configuration incremental data stored in the temporarily stored module to update the graph corresponding to the page configuration incremental data; wherein, the graph is a visual display graph configured or updated based on the page configuration incremental data pushed earlier.
[0030] It should be noted that the step numbers "S1N" in this specification do not represent the sequence of the page configuration data increment processing method. The following specifically combines Figure 2 to describe the page configuration data increment processing method of the present invention.
[0031] Step S11. Receive page configuration incremental data, which is used to represent the device data pushed by the group control device based on device updates.
[0032] In this embodiment, receiving the page configuration incremental data includes: receiving the page configuration incremental data sent by the data storage system, and the page configuration incremental data is sent by the group control device to the data storage system based on device data updates.
[0033] It should be noted that the page configuration incremental data includes device update data or device full amount data, and the device full amount data contains the device update data.
[0034] Further, receiving the page configuration incremental data sent by the data storage system includes: receiving the page configuration incremental data sent by the data storage system based on a preset time interval; or receiving the page configuration incremental data sent by the data storage system after the amount of page configuration incremental data reaches a preset quantity. It should be noted that the data storage system is used to receive the page configuration incremental data pushed by the group control device, and push the incremental data to the page configuration end for incremental data processing according to a preset time interval or when the data volume reaches a preset quantity, so that the frequency of the page configuration end receiving data tends to be stable, avoiding jams or even crashes caused by too much data surging in instantaneously, reasonably allocating system computing, communication and other resources, and ensuring smooth overall operation.
[0035] In an alternative embodiment, before receiving the page configuration incremental data, it includes: receiving group control device data, constructing a data model according to the group control device data; forming a visual display graph according to the group control device data required by the graph to be visualized and combining with the corresponding data model; wherein, the data model is obtained by storing the group control device data according to a preset storage structure and is used to provide data support for the graph.
[0036] Further, after forming the visual display graph by combining the required group control device data of the graph to be visualized with the corresponding data model, it includes: traversing all graphs and constructing a mapping based on the graph and the data model forming the graph; creating a temporary storage module.
[0037] It should be added that the mapping can be stored in the form of key-value pairs; the temporary storage module can be constructed based on the form of key-value pairs, so that when the page configuration incremental data is stored in the temporary storage module subsequently, the data is stored in the form of key-value pairs.
[0038] Step S12, determine whether there is a timer timing, and based on the existence of the timer timing, determine whether the timer timing duration reaches the preset time.
[0039] In an alternative embodiment, referring to Figure 2 , to determine whether there is a timer, it further includes: based on the non-existence of the timer timing, using the page configuration incremental data to update the graph corresponding to the page configuration incremental data.
[0040] It should be noted that when there is no timer timing constraint, once there is new page configuration incremental data, the system can immediately capture and use this data to update the corresponding graph, improving the real-time response. And without the continuous background operation of the timer, the system does not need to continuously invest additional computing resources for timing maintenance and related complex logical judgments, enabling the system to focus on core data processing and graph presentation, ensuring the fluency and stability of the system. In addition, the immediate update of the graph can reduce the operation lag caused by information delay, enhancing the user's confidence and dependence on the system, and the interaction experience is simple and smooth. In addition, the graph update method is referred to below and will not be repeated here.
[0041] In an alternative embodiment, after using the page configuration incremental data to update the graph corresponding to the page configuration incremental data, it includes: starting the timer timing.
[0042] It should be noted that by starting the timer after completing the immediate update of the graph, it is convenient to orderly store the newly incoming data in the temporary memory within a short period of time, ensuring that even in the case of frequent pushing of incremental data, it can be screened and sorted in an orderly manner, avoiding the direct impact of chaotic data on the graph update mechanism, ensuring the quality and stability of the graph update. And after starting the timer, the system coordinates the data in the temporary memory within a certain time range, taking into account both the short-term real-time display requirements of the currently updated graph and leaving room for adjustment for possible large-scale data changes in the future, adapting to the dynamic changes of data traffic at different times, and ensuring the long-term stable and efficient operation of the system.
[0043] Step S13: If the timing duration of the timer has not reached the preset time, store the page configuration incremental data in the temporarily stored module created in advance; otherwise, determine whether there is page configuration incremental data stored in the temporarily stored module.
[0044] It should be noted that when the timing duration of the timer has not reached the preset time, by storing the page configuration incremental data in the temporarily stored module, frequent graphic updates are avoided, preventing visual interference to the user caused by graphic flickering or too rapid changes, ensuring that the user can focus on the key information. By accurately controlling the data processing rhythm with the timer, the system does not need to immediately perform complex graphic updates and data integration every time incremental data is received. Instead, it only needs to centrally process the data in the temporarily stored module when the preset time arrives, so as to reasonably allocate resources, improve the overall operation efficiency of the system, and ensure that the system always maintains a good performance state during long-term operation.
[0045] In an optional embodiment, determining whether there is page configuration incremental data stored in the temporarily stored module includes: based on the fact that there is no page configuration incremental data stored in the temporarily stored module, clearing and ending the timing of the timer and not performing graphic updates.
[0046] It should be noted that in the case where there is no page configuration incremental data stored in the temporarily stored module, it means that there is no data to be processed at present to drive graphic updates. At this time, clearing and ending the timing of the timer can avoid the situation where the system still continuously invests resources in the timing operation when there is no substantial data processing requirement, avoiding the introduction of complex and meaningless judgment branches and subsequent operations, making the entire data processing process clearer and improving the rationality and efficiency of the overall system resource utilization.
[0047] Step S14: Based on the fact that there is page configuration incremental data stored in the temporarily stored module, use the page configuration incremental data stored in the temporarily stored module to update the graphic corresponding to the page configuration incremental data; where the graphic is a visual display graphic configured or updated based on the previously pushed page configuration incremental data.
[0048] In this embodiment, using the page configuration incremental data stored in the temporarily stored module to update the graphic corresponding to the page configuration incremental data includes: according to the page configuration incremental data stored in the temporarily stored module, combining with the preset mapping, updating the data model corresponding to the page configuration incremental data to update the corresponding graphic; where the preset mapping is previously configured based on the graphic and the data model used to configure the graphic, and the data model is used to represent the data structure and logical relationship required for page configuration.
[0049] It should be noted that the use of a temporary storage module to centrally process incremental data avoids the inefficiency and confusion of processing scattered data one by one, and a preset mapping relationship is used to accurately guide the incremental data in the temporary storage module to the corresponding data model location, thereby driving the accurate update of the graphics. Compared with frequent scattered operations on single data points, the number of data accesses and intermediate conversion links are greatly reduced, thereby accelerating the graphics update speed; in addition, the preset mapping is pre-configured based on the graphics and the data model used to configure the graphics. When the system needs to be upgraded, new graphic elements are added, or the coverage of the data model is expanded, it only needs to adjust the preset mapping according to the established rules, which greatly reduces the system upgrade cost and extends the service life of the system.
[0050] Specifically, according to the page configuration incremental data stored in the temporary storage module and in combination with the preset mapping, the data model corresponding to the page configuration incremental data is updated, including: determining the graphic corresponding to the page configuration incremental data according to the key of the page configuration incremental data stored in the temporary storage module and the key in the preset mapping; according to the graphic corresponding to the page configuration incremental data and the preset mapping, using the page configuration incremental data stored in the temporary storage module, updating the data model corresponding to the graphic corresponding to the page configuration incremental data.
[0051] It should be noted that by accurately matching the key of the incremental data in the temporary storage module with the key in the preset mapping, the graphics can be accurately positioned according to the association between data and graphics, and between graphics and data models, so as to efficiently update the data model corresponding to the graphics. The key-based matching method makes the relationship between data, graphics and data models looser and more flexible, reduces coupling, and improves the system's adaptability. There is no need to perform a large number of redundant search and comparison operations during data processing, thereby reducing unnecessary consumption of computing resources.
[0052] Furthermore, the page configuration incremental data stored in the temporary storage module is used to update the data model corresponding to the graphics corresponding to the page configuration incremental data, including: checking whether the page configuration incremental data stored in the temporary storage module is data at different times of the same group control device; if so, selecting the page configuration incremental data at the latest time of the same group control device as the update data, and writing the update data into the corresponding data model; otherwise, using the corresponding page configuration incremental data as the update data, and writing the update data into the corresponding data model.
[0053] It should be noted that by checking whether the data in the temporary storage module is information of the same group control device at different times, the model can be updated by focusing on the latest data of the same group control device, avoiding invalid processing of a large amount of duplicate or outdated data, and ensuring that the screen presented by the page configuration is closely aligned with the actual situation of the device at the moment.
[0054] In addition, writing the updated data into the corresponding data model includes: if the updated data only contains device update data, directly writing the device update data into the corresponding data model; if the updated data is the full device data and the full device data contains device update data, writing the full device data into the corresponding data model, or writing the device update data into the corresponding data model.
[0055] Furthermore, writing the updated data or the data update part in the updated data into the corresponding data model includes: based on the data storage structure of the data model and in combination with a preset data writing method, writing the updated data or the data update part in the updated data into the corresponding data model; wherein, the preset data writing method is configured in advance based on the data storage structure of the data model.
[0056] It should be added that based on the data storage structure of the data model and in combination with a preset data writing method, writing the updated data or the data update part in the updated data into the corresponding data model includes: when the data storage structure of the data model is a memory data structure (such as storing in JSON format, etc.), modifying the key-value pairs in the corresponding data model according to the key-value pairs of the updated data or the data update part stored in the temporary storage module; when the data storage structure of the data model is a relational database structure, in combination with a preset data writing method, executing the corresponding preset SQL statement (such as the UPDATE statement, etc.), and writing the updated data or the full data stored in the temporary storage module into the corresponding data model in sequence to update the field values in the corresponding data model; wherein, the preset SQL data is compiled in advance based on the data storage structure and the page configuration incremental data in the data model to be written.
[0057] In an alternative embodiment, after updating the graphics corresponding to the page configuration incremental data by using the page configuration incremental data stored in the temporary storage module based on the fact that the temporary storage module stores page configuration incremental data, it includes: clearing the data in the temporary storage module and clearing and ending the timing of the timer.
[0058] It should be noted that after completing the graphic update, promptly clearing the data in the temporary storage module can immediately release precious memory space, avoid data backlog from occupying too much memory resources, prevent possible subsequent memory shortage problems, ensure the continuous, stable and smooth operation of the system, and by clearing and ending the timing of the timer, make the system quickly "reset to zero", get rid of the shackles of the previous timing cycle, be ready to efficiently handle the next round of data impact at any time, and avoid a series of logic errors that may be caused by data residue and timing confusion.
[0059] In summary, in the embodiment of the present invention, it is determined whether to store the page configuration incremental data in the temporary storage module according to the timer time, so as to effectively buffer the pressure of data inflow, and when the timer time reaches the preset time and there is page configuration incremental data stored in the temporary storage module, the graphic is updated. On the basis of ensuring the real-time response of the interface to data changes, it avoids the situation of frequent graphic updates caused by a large amount of data pouring in within a short period of time, prevents visual interferences such as graphic flickering or too fast changes caused by frequent graphic updates, and ensures that the system always maintains a good performance state during long-term operation.
[0060] Next, the page configuration data incremental processing device provided by the present invention will be described. The page configuration data incremental processing device described below can be correspondingly referred to the page configuration data incremental processing method described above.
[0061] Figure 3 The structure diagram of a page configuration data incremental processing device is shown. The device includes: A data receiving module 31, which receives page configuration incremental data, and the page configuration incremental data is used to represent the device data pushed by the group control device based on device updates; A timing judgment module 32, which determines whether there is a timer timing, and based on the existence of the timer timing, determines whether the timer timing duration reaches the preset time; A data storage module 33, which stores the page configuration incremental data in the previously created temporary storage module based on the fact that the timer timing duration does not reach the preset time; A data check module 34, which determines whether there is page configuration incremental data stored in the temporary storage module based on the fact that the timer timing duration reaches the preset time; A graphic update module 35, which updates the graphic corresponding to the page configuration incremental data by using the page configuration incremental data stored in the temporary storage module based on the fact that there is page configuration incremental data stored in the temporary storage module; wherein, the graphic is a visual display graphic configured or updated based on the previously pushed page configuration incremental data.
[0062] In this embodiment, the data receiving module 31 is used to: receive the page configuration incremental data sent by the data storage system, and the page configuration incremental data is sent by the group control device to the data storage system based on device data updates.
[0063] Further, the data receiving module 31 is used to: receive the page configuration incremental data sent by the data storage system based on a preset time interval; or, receive the page configuration incremental data sent by the data storage system after the page configuration incremental data volume reaches a preset quantity.
[0064] In an alternative embodiment, the device further includes: a model construction module that, before receiving the page configuration incremental data, receives the group control device data and constructs a data model based on the group control device data; a visualization display module that forms a visualization display graph according to the group control device data required for the graph to be visualized and in combination with the corresponding data model; wherein the data model is obtained by storing the group control device data in a preset storage structure and is used to provide data support for the graph.
[0065] Further, the device further includes: a mapping construction module that, after forming a visualization display graph according to the group control device data required for the graph to be visualized and in combination with the corresponding data model, traverses all the graphs and constructs a mapping according to the graphs and the data models for forming the graphs; a storage construction module that creates a temporary storage module.
[0066] A graph update module 35 is configured to: update the data model corresponding to the page configuration incremental data according to the page configuration incremental data stored in the temporary storage module and in combination with a preset mapping, so as to update the corresponding graph; wherein the preset mapping is previously configured based on the graph and the data model used for configuring the graph, and the data model is used to represent the data structure and logical relationship required for page configuration display.
[0067] Specifically, the graph update module 35 includes: a graph determination unit that determines the graph corresponding to the page configuration incremental data according to the key of the page configuration incremental data stored in the temporary storage module and the key in the preset mapping; a model update unit that updates the data model corresponding to the graph corresponding to the page configuration incremental data by using the page configuration incremental data stored in the temporary storage module according to the graph corresponding to the page configuration incremental data and the preset mapping.
[0068] Further, the model update unit includes: an inspection subunit that inspects whether the page configuration incremental data stored in the temporary storage module is data of different moments of the same group control device; a model update subunit that, if there is page configuration incremental data of different moments of the same group control device in the storage module, selects the page configuration incremental data of the latest moment of the same group control device as the update data and writes the update data into the corresponding data model; otherwise, uses the corresponding page configuration incremental data as the update data and writes the update data into the corresponding data model.
[0069] It should be noted that the model update subunit is configured to: if the update data only includes device update data, directly write the device update data into the corresponding data model; if the update data is device full - volume data and the device full - volume data includes device update data, write the device full - volume data into the corresponding data model, or write the device update data into the corresponding data model.
[0070] Furthermore, a model update subunit is configured to: based on the data storage structure of the data model and in combination with a preset data writing method, write the update data or the data update part in the update data into the corresponding data model; wherein the preset data writing method is configured in advance based on the data storage structure of the data model.
[0071] It should be added that the model update subunit is configured to: when the data storage structure of the data model is an in-memory data structure (such as storage in JSON format, etc.), modify the key-value pairs in the corresponding data model according to the key-value pairs of the update data or the data update part stored in the temporary storage module; when the data storage structure of the data model is a relational database structure, in combination with a preset data writing method, execute the corresponding preset SQL statement (such as an UPDATE statement, etc.), and write the update data or the full amount of data stored in the temporary storage module into the corresponding data model in sequence to update the field values in the corresponding data model; wherein the preset SQL data is compiled in advance based on the data storage structure and the page configuration increment data in the data model to be written.
[0072] In an alternative embodiment, the graphic update module 35 is further configured to: based on the absence of timer timing, use the page configuration increment data to update the graphic corresponding to the page configuration increment data. It should be noted that for the specific results of the graphic update module, refer to the above description and will not be repeated here.
[0073] In an alternative embodiment, the device further includes: a timing control module that starts timer timing after using the page configuration increment data to update the graphic corresponding to the page configuration increment data.
[0074] In an alternative embodiment, the device further includes: an end module that clears and ends the timer timing and does not perform graphic update based on the fact that the page configuration increment data is not stored in the temporary storage module.
[0075] In an alternative embodiment, the end module is further configured to: after using the page configuration increment data stored in the temporary storage module to update the graphic corresponding to the page configuration increment data based on the fact that the page configuration increment data is stored in the temporary storage module, clear the data in the temporary storage module and clear and end the timer timing.
[0076] In summary, in the embodiment of the present invention, the data storage module determines whether to store the page configuration incremental data received by the data receiving module into the temporary storage module according to the timer time of the timing judgment module, so as to effectively buffer the pressure of data inflow. When the timer time reaches the preset time and the data check module determines that there is page configuration incremental data stored in the temporary storage module, the graphic update module is used to update the graphic. On the basis of ensuring the real-time response of the interface to data changes, it avoids the situation of frequent graphic updates caused by a large amount of data pouring in within a short period of time, prevents visual interferences such as graphic flickering or too fast changes caused by frequent graphic updates, and ensures that the system always maintains a good performance state during long-term operation.
[0077] Figure 4 Schematic diagram of the physical structure of an electronic device is exemplified, as Figure 4 shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440. Among them, the processor 410, the communication interface 420, and the memory 430 complete mutual communication through the communication bus 440. The processor 410 can call the logical instructions in the memory 430 to execute the page configuration data increment processing method, which includes: receiving page configuration incremental data, where the page configuration incremental data is used to represent the device data pushed by the group control device based on device updates; determining whether there is a timer timing, and based on the existence of timer timing, determining whether the timer timing duration reaches the preset time; if the timer timing duration does not reach the preset time, storing the page configuration incremental data into a previously created temporary storage module; otherwise, determining whether there is page configuration incremental data stored in the temporary storage module; based on the fact that there is page configuration incremental data stored in the temporary storage module, using the page configuration incremental data stored in the temporary storage module to update the graphic corresponding to the page configuration incremental data; where the graphic is a visual display graphic configured or updated based on the previously pushed page configuration incremental data.
[0078] In addition, when the logical instructions in the above-mentioned memory 430 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0079] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the page configuration data incremental processing method provided by the above-mentioned various methods. The method includes: receiving page configuration incremental data, where the page configuration incremental data is used to represent the device data pushed by the group control device based on device updates; determining whether there is a timer timing, and based on the existence of the timer timing, determining whether the timer timing duration reaches a preset time; if the timer timing duration does not reach the preset time, storing the page configuration incremental data in a previously created temporary storage module; otherwise, determining whether there is page configuration incremental data stored in the temporary storage module; based on the existence of page configuration incremental data stored in the temporary storage module, using the page configuration incremental data stored in the temporary storage module to update the graphic corresponding to the page configuration incremental data; where the graphic is a visual display graphic configured or updated based on the previously pushed page configuration incremental data.
[0080] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the method for incrementally processing page configuration data provided above. The method includes: receiving page configuration incremental data, where the page configuration incremental data is used to represent device data pushed by a group control device based on device updates; determining whether there is a timer timing, and based on the existence of the timer timing, determining whether the timing duration of the timer reaches a preset time; if the timing duration of the timer does not reach the preset time, storing the page configuration incremental data in a previously created temporary storage module; otherwise, determining whether there is page configuration incremental data stored in the temporary storage module; based on the existence of page configuration incremental data stored in the temporary storage module, using the page configuration incremental data stored in the temporary storage module to update the graph corresponding to the page configuration incremental data; where the graph is a visual display graph configured or updated based on the previously pushed page configuration incremental data.
[0081] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative labor.
[0082] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for incrementally processing page configuration data, characterized in that, Including: Receiving page configuration incremental data, where the page configuration incremental data is used to characterize the device data pushed by the group control device based on device updates; Determining whether there is a timer timing, and based on the existence of the timer timing, determining whether the timing duration of the timer reaches a preset time; If the timing duration of the timer does not reach the preset time, storing the page configuration incremental data in a previously created temporary storage module; otherwise, determining whether there is page configuration incremental data stored in the temporary storage module; Based on the page configuration incremental data stored in the temporary storage module, using the page configuration incremental data stored in the temporary storage module to update the graph corresponding to the page configuration incremental data; where the graph is a visual display graph configured or updated based on the previously pushed page configuration incremental data.
2. The page configuration data incremental processing method according to claim 1, wherein Using the page configuration incremental data stored in the temporary storage module to update the graph corresponding to the page configuration incremental data includes: According to the page configuration incremental data stored in the temporary storage module, in combination with a preset mapping, updating the data model corresponding to the page configuration incremental data to update the corresponding graph; where the preset mapping is previously configured based on the graph and the data model used to configure the graph, and the data model is used to characterize the data structure and logical relationship required for page configuration.
3. The page configuration data incremental processing method according to claim 2, wherein According to the page configuration incremental data stored in the temporary storage module, in combination with a preset mapping, updating the data model corresponding to the page configuration incremental data includes: Determining the graph corresponding to the page configuration incremental data according to the key of the page configuration incremental data stored in the temporary storage module and the key in the preset mapping; According to the graph corresponding to the page configuration incremental data and the preset mapping, using the page configuration incremental data stored in the temporary storage module to update the data model corresponding to the graph corresponding to the page configuration incremental data.
4. The page configuration data incremental processing method according to claim 3, wherein Using the page configuration incremental data stored in the temporary storage module to update the data model corresponding to the graph corresponding to the page configuration incremental data includes: Checking whether the page configuration incremental data stored in the temporary storage module is data of the same group control device at different times; If so, selecting the page configuration incremental data at the latest time of the same group control device as the update data and writing the update data into the corresponding data model; Otherwise, using the corresponding page configuration incremental data as the update data and writing the update data into the corresponding data model.
5. The page configuration data incremental processing method according to claim 1, wherein Determining whether there is page configuration incremental data stored in the temporary storage module includes: Based on the fact that there is no page configuration incremental data stored in the temporary storage module, clearing and ending the timer timing and not performing graph updates; After using the page configuration incremental data stored in the temporary storage module to update the graph corresponding to the page configuration incremental data based on the fact that there is page configuration incremental data stored in the temporary storage module, including: Emptying the data in the temporary storage module, clearing and ending the timer timing.
6. The page configuration data incremental processing method according to any one of claims 1-5, characterized in that, Determining whether there is a timer timing further includes: Based on the non - existence of the timer timing, use the page configuration incremental data to update the graph corresponding to the page configuration incremental data.
7. The page configuration data incremental processing method according to claim 6, wherein, After using the page configuration incremental data to update the graph corresponding to the page configuration incremental data, it includes: Start the timer timing.
8. A page configuration data incremental processing device, characterized in that, It includes: A data receiving module that receives page configuration incremental data, and the page configuration incremental data is used to represent the device data pushed by the group control device based on device updates; A timing judgment module that determines whether there is timer timing, and based on the existence of the timer timing, determines whether the timer timing duration reaches a preset time; A data storage module that, based on the fact that the timer timing duration does not reach the preset time, stores the page configuration incremental data in a previously created temporary storage module; A data check module that, based on the fact that the timer timing duration reaches the preset time, determines whether there is page configuration incremental data stored in the temporary storage module; A graph update module that, based on the fact that there is page configuration incremental data stored in the temporary storage module, uses the page configuration incremental data stored in the temporary storage module to update the graph corresponding to the page configuration incremental data; wherein, the graph is a visual display graph configured or updated based on the previously pushed page configuration incremental data.
9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the page configuration data incremental processing method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the page configuration data incremental processing method according to any one of claims 1 to 7.