Canvas issuing method, system and equipment for new energy low-code configuration platform and medium

By adopting multi-threaded parallel batch operation and parallel data verification algorithms on the new energy low-code configuration platform, the problem of low efficiency of canvas is solved in the existing technology, efficient canvas issuance and version control are achieved, and system processing capabilities and user experience are improved.

CN119861999APending Publication Date: 2025-04-22HUANENG NINGXIA ENERGY CO LTD LINGWULONGQIAO BRANCH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411928506.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

The canvas issuing methods of existing new energy low-code configuration platforms are inefficient, especially in large-scale data transmission and task scheduling scenarios, resulting in increased system response time and worse user experience.

Method used

By receiving and parsing the request, obtaining the canvas-related data, and performing data cleaning and version compatibility verification. Divide the data into multiple batches, and perform batch update database operations in parallel using multiple threads to realize parallel data checksum issuance. Dynamically adjust the thread pool size and allocate thread resources according to the actual load situation.

Benefits of technology

It improves the efficiency of canvas distribution, ensures the correct delivery of version control information, dynamically adjusts the task execution order and thread pool usage, improves system processing capabilities, reduces latency and resource consumption, and ensures the stability and efficiency of large-scale data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119861999A_ABST
    Figure CN119861999A_ABST
Patent Text Reader

Abstract

The invention discloses a new energy low-code configuration platform canvas issuing method, system and device and a medium, and the method comprises the steps: receiving and analyzing an issuing request, and obtaining the related data of a canvas; according to the method, the system, the equipment and the medium, the related data of the canvas are divided into multiple batches, batch database updating operation is executed in parallel through multiple threads, issuing of the related data of the canvas is achieved, and the canvas issuing efficiency of the method, the system, the equipment and the medium is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of configuration software functions and relates to a new energy low-code configuration platform canvas issuing method, system, equipment and medium. Background Art

[0002] The new energy low-code configuration platform provides a low-code solution for modeling and calculating new energy power generation indicators. Ultimately, the modeling and calculation logic of each indicator is reflected in a canvas built with various computing units. Due to the large number of new energy station equipment and complex management dimensions, the operation and management of the station requires a large number of canvases to support it, so a more efficient canvas distribution method is needed. In the existing task scheduling system, most of the distribution operations are carried out sequentially, but when faced with a large amount of data, the distribution efficiency will drop sharply. In addition, the canvas distribution not only needs to store the drawing logic of the canvas, but also needs to record the canvas input and output, the possible associations between canvases, and other user personality settings. If these data are inserted or updated in the database one by one, and the task scheduling is single-threaded or simply concurrent, the advantages of multi-core processors cannot be fully utilized. In the scenario of large-scale data transmission and task scheduling, the above problems are more prominent, which directly leads to an increase in the system response time and a poor user experience. In addition, the transmission of version control information is usually executed sequentially, and is not optimized for the scale and diversity of data. In short, the general canvas distribution solution lacks flexible parallelization technology and cannot meet the requirements of large-scale data transmission. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a method, system, device and medium for issuing a canvas of a new energy low-code configuration platform. The method, system, device and medium have high canvas issuing efficiency.

[0004] To achieve the above object, the present invention discloses a method for issuing a new energy low-code configuration platform canvas, comprising:

[0005] Receive and parse the request to obtain the relevant data of the canvas;

[0006] The relevant data of the canvas is divided into multiple batches, and batch update database operations are performed in parallel through multiple threads to achieve the distribution of the relevant data of the canvas.

[0007] The further improvement of the canvas issuing method of the new energy low-code configuration platform described in the present invention is:

[0008] Furthermore, before dividing the canvas related data into multiple batches, the process further includes:

[0009] Clean the relevant data of the canvas and remove the content that does not meet the requirements.

[0010] Furthermore, before dividing the canvas related data into multiple batches, the process further includes:

[0011] The client version is obtained from the request, and the obtained client version is compared with the current server version to ensure the version compatibility between the client and the server. When the versions are incompatible, an exception is directly thrown to terminate the sending process; when the versions are compatible, the version information is saved, and the version information includes the version number, creator and update time.

[0012] Furthermore, in the process of executing batch update database operations in parallel through multiple threads, when any thread operation fails, the transaction rollback of all data is triggered.

[0013] Furthermore, it also includes:

[0014] By dynamically adjusting the thread pool size, thread resources are allocated according to the actual load conditions.

[0015] The present invention discloses a new energy low-code configuration platform canvas issuing system, comprising:

[0016] The receiving module is used to receive and parse the request and obtain the relevant data of the canvas;

[0017] The sending module is used for library operations to send relevant data of the canvas.

[0018] The further improvement of the canvas issuing system of the new energy low-code configuration platform described in the present invention is:

[0019] Furthermore, it also includes:

[0020] The data preprocessing module is used to clean the relevant data of the canvas and remove the content that does not meet the requirements.

[0021] Furthermore, it also includes:

[0022] The data verification module is used to obtain the client version from the request and compare the obtained client version with the current server version to ensure the version compatibility between the client and the server. When the versions are incompatible, an exception is directly thrown to terminate the sending process; when the versions are compatible, the version information is saved, and the version information includes the version number, creator and update time.

[0023] The present invention discloses a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the canvas issuing method of the new energy low-code configuration platform are implemented.

[0024] The present invention discloses a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the new energy low-code configuration platform canvas issuance method are implemented.

[0025] The present invention has the following beneficial effects:

[0026] The canvas issuing method, system, device and medium of the new energy low-code configuration platform described in the present invention improve the efficiency of canvas issuing and ensure the correct transmission of version control information by integrating multi-threaded parallel batch operations and parallel data verification algorithms during specific operations. According to the priority, dependency and resource status of the tasks, the order of task execution and the use of the thread pool are dynamically adjusted to improve the system processing capability, improve the processing speed of the canvas issuing of the low-code data modeling platform, reduce delays, reduce system resource consumption, and ensure the stability and efficiency of large-scale data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:

[0028] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] In the description of the present invention, it should be understood that the terms “include” and “comprises” indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.

[0031] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise.

[0032] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects are in an "or" relationship.

[0033] It should be understood that, although the terms first, second, third, etc. may be used to describe preset ranges, etc. in the embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from each other. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.

[0034] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0035] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention described and shown in the drawings here can usually be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0036] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0037] Embodiment 1

[0038] refer to Figure 1 The method for issuing the new energy low-code configuration platform canvas of the present invention comprises the following steps:

[0039] 1) Data verification;

[0040] Receive and parse the request to obtain the relevant data of the canvas, and then perform preliminary filtering on the relevant data of the canvas to remove content that does not meet the conditions, such as invalid canvases or canvases that are not within the executable range. Further, the system will perform multiple verification tasks, such as data format verification, version compatibility verification, etc. Some of the verification tasks are independent of each other, while others are dependent. For verification tasks without dependencies, the system executes them simultaneously, thereby reducing the waiting time during the verification process. For verification tasks with dependencies, the system will execute them in sequence to ensure the correctness of the verification. In this way, parallelization can be used to improve the execution efficiency of verification tasks without dependencies, and the accuracy of data verification can be guaranteed.

[0041] 2) Version compatibility check and version control update;

[0042] Version information is a key point in the canvas delivery process. The system first obtains the client version from the request, and compares the obtained client version with the current server version to ensure the version compatibility between the client and the server. When the versions are incompatible, the system will directly throw an exception and terminate the delivery process to avoid data delivery errors caused by version problems. When the versions are compatible, the system will save the version information and ensure the correct storage and update of the version information through transaction management. The version information includes the version number, creator, and update time, etc., to ensure the integrity of the version history and achieve traceability of canvas iterations.

[0043] 3) Processing and issuing of canvas information;

[0044] After obtaining and verifying the basic information, we first need to assemble the upstream and downstream relationships, input and output indicator information required in the canvas calculation process according to the given data, and standardize the user-defined content, and then issue it. The system divides all the data to be processed into multiple batches and executes batch update database operations in parallel through multiple threads. These operations will be performed concurrently, improving the concurrency of database processing and reducing execution time.

[0045] 4)Transaction management and concurrency control;

[0046] All operations involving the database are managed through transactions to ensure data consistency and integrity. During parallel processing, if any thread operation fails, the transaction will be rolled back to ensure that no dirty data is generated. The system will also dynamically adjust the thread pool size and reasonably allocate thread resources according to the actual load situation to ensure the efficiency of multi-threaded operations and avoid resource competition caused by too many threads.

[0047] 5) Intelligent task scheduling and dynamic optimization;

[0048] A task is composed of data from multiple canvases. The scheduling module will dynamically adjust the order of task execution based on the business priority and dependency. The system will give priority to high-priority tasks. In addition, the system dynamically adjusts the size of the thread pool based on the computational load of the task and the system load to ensure efficient use of system resources. When the load is light, the thread pool is small, and when the load is heavy, the system will automatically expand the thread pool to ensure the parallel execution efficiency of tasks.

[0049] Embodiment 2

[0050] The new energy low-code configuration platform canvas distribution system of the present invention includes:

[0051] The receiving module is used to receive and parse the request and obtain the relevant data of the canvas;

[0052] The sending module is used for library operations to send relevant data of the canvas.

[0053] As an embodiment of the present invention, it also includes:

[0054] The data preprocessing module is used to clean the relevant data of the canvas and remove the content that does not meet the requirements.

[0055] As an embodiment of the present invention, it also includes:

[0056] The data verification module is used to obtain the client version from the request and compare the obtained client version with the current server version to ensure the version compatibility between the client and the server. When the versions are incompatible, an exception is directly thrown to terminate the sending process; when the versions are compatible, the version information is saved, and the version information includes the version number, creator and update time.

[0057] The division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0058] Embodiment 3

[0059] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the canvas issuing method of the new energy low-code configuration platform are implemented, for example, including: receiving and parsing the issuing request, obtaining the relevant data of the canvas, performing preliminary filtering on the relevant data of the canvas, and removing the content that does not meet the conditions; obtaining the client version from the request, and comparing the obtained client version with the current server version to ensure the version compatibility between the client and the server. When the versions are incompatible, an exception is directly thrown to terminate the issuing process; when the versions are compatible, the version information is saved, and the version information includes the version number, creator, and update time. The relevant data of the canvas is divided into multiple batches, and the batch update database operation is executed in parallel by multi-threading to implement the issuing of the relevant data of the canvas. Among them, the memory may include a memory, such as a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk memory, etc.; the processor, the network interface, and the memory are interconnected through an internal bus, and the internal bus can be an industrial standard architecture bus, a peripheral component interconnection standard bus, an extended industrial standard structure bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. The memory is used to store programs, specifically, the programs may include program codes, and the program codes include computer operation instructions. The memory may include internal memory and non-volatile memory, and provide instructions and data to the processor.

[0060] Embodiment 4

[0061] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of implementing the canvas issuing method of the new energy low-code configuration platform are implemented, for example, including: receiving and parsing the issuing request, obtaining the relevant data of the canvas, performing preliminary filtering on the relevant data of the canvas, and removing the content that does not meet the conditions; obtaining the client version from the request, and comparing the obtained client version with the current server version to ensure the version compatibility between the client and the server. When the version is incompatible, an exception is directly thrown to terminate the issuing process; when the version is compatible, the version information is saved, and the version information includes the version number, creator and update time. The relevant data of the canvas is divided into multiple batches, and the batch update database operation is executed in parallel by multi-threading to implement the issuing of the relevant data of the canvas. Specifically, the computer-readable storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. The volatile memory may include random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include read-only memory (ROM), hard disk, flash memory, optical disk, disk, etc.

[0062] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0063] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0064] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0065] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0066] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and disclosure of the invention. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0067] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

[0068] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any way. Any simple modification, change and equivalent structural change made to the above embodiment based on the technical essence of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A method for issuing a new energy low-code configuration platform canvas, characterized in that: include: Receive and parse the request to obtain the relevant data of the canvas; The relevant data of the canvas is divided into multiple batches, and batch update database operations are performed in parallel through multiple threads to achieve the distribution of the relevant data of the canvas.

2. The canvas issuing method of the new energy low-code configuration platform according to claim 1 is characterized in that: The step of dividing the canvas related data into multiple batches also includes: Clean the relevant data of the canvas and remove the content that does not meet the requirements.

3. The canvas issuing method of the new energy low-code configuration platform according to claim 1 is characterized in that: The step of dividing the canvas related data into multiple batches also includes: The client version is obtained from the request, and the obtained client version is compared with the current server version to ensure the version compatibility between the client and the server. When the versions are incompatible, an exception is directly thrown to terminate the sending process; when the versions are compatible, the version information is saved, and the version information includes the version number, creator and update time.

4. The canvas issuing method of the new energy low-code configuration platform according to claim 1 is characterized in that: When batch updating database operations are performed in parallel through multiple threads, if any thread operation fails, the transaction rollback of all data is triggered.

5. The canvas issuing method of the new energy low-code configuration platform according to claim 1 is characterized in that: Also includes: By dynamically adjusting the thread pool size, thread resources are allocated according to the actual load conditions.

6. A new energy low-code configuration platform canvas distribution system, characterized in that: include: The receiving module is used to receive and parse the request and obtain the relevant data of the canvas; The sending module is used for library operations to send relevant data of the canvas.

7. The canvas issuing system of the new energy low-code configuration platform according to claim 6 is characterized in that: Also includes: The data preprocessing module is used to clean the relevant data of the canvas and remove the content that does not meet the requirements.

8. The canvas issuing system of the new energy low-code configuration platform according to claim 6 is characterized in that: Also includes: A data verification module is used to obtain the client version from the request and compare the obtained client version with the current server version to ensure the version compatibility between the client and the server. When the versions are incompatible, an exception is directly thrown to terminate the sending process; When the versions are compatible, the version information is saved, and the version information includes the version number, creator and update time.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the steps of the new energy low-code configuration platform canvas issuance method as described in any one of claims 1-5.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, the steps of the new energy low-code configuration platform canvas issuance method as described in any one of claims 1 to 5 are implemented.