A configuration data processing method, device and system based on low-code application development

By logically splitting and reorganizing the configuration data in the low-code application development platform and storing it in a non-relational database, the problem of high consumption of resource access for complex configuration data is solved, and more efficient data processing and parsing speed is achieved.

CN114356403BActive Publication Date: 2025-05-27SUPCON TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111607578.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2025-05-27
Estimated Expiration
2041-12-17

AI Technical Summary

Technical Problem

In low-code application development platforms, complex page components cause huge configuration data. The existing technology stores configuration data as a whole in a relational database, resulting in large consumption of data access resources and slow parsing speed, which affects interactive response.

Method used

By logically splitting and reorganizing the configuration data, dividing it into sub-files of several levels, and using multiple XML to store it in a non-relational database. By identifying the associated sub-files, the corresponding sub-files are only updated when the data changes.

Benefits of technology

Reduces resource consumption during configuration data access, improves the parsing speed of front and back ends, and improves software development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114356403B_ABST
    Figure CN114356403B_ABST
Patent Text Reader

Abstract

The present invention discloses a configuration data processing method, device, and system based on low-code application development. Among them, the configuration data processing method based on low-code application development specifically includes: dividing the configuration data developed by low-code applications into several hierarchical sub-files based on their logical structures. Among them, the sub-files are associated through identifiers, and the identifiers correspond to the sub-files one by one based on the configuration data logical structure, and the several sub-files are respectively stored in a non-relational database. The configuration data processing method, device, and system based on low-code application development proposed by the present invention perform logical splitting and recombination on the configuration data. By using the method of storing multiple segments of XML in a non-relational database, the resource consumption during the access of the configuration data is reduced, and the parsing speed of the front and back ends is improved, thereby greatly improving the software development efficiency of the platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software development in the field of intelligent manufacturing, and specifically discloses a configuration data processing method, device, and system based on low-code application development. Background Art

[0002] With the development of industrial informatization, more and more enterprises choose to develop relevant functions in the field of intelligent manufacturing through low-code application development platforms. When the business functions are relatively complex and there are many page components, the configuration data generated by configuring a single page will also become very large. Therefore, how to efficiently store and read complex configuration data has become a bottleneck in the development of the platform.

[0003] The current common practice is to store the configuration data as a whole in a large field of a relational database in the data format of XML or JSON. This data storage method has the following problems: 1) Any modification to the page configuration will cause the modification of the entire configuration data, and frequent front-end and back-end interactions of a large amount of data will bring huge resource consumption to the network and server IO. 2) Parsing a huge XML or JSON field string at one time brings a huge burden to both the front-end and the back-end, affecting the response speed of the interaction. 3) Storing a large number of large text fields in a relational database also brings a burden to the operation of the relational database itself. Summary of the Invention

[0004] In order to overcome the above-mentioned deficiencies in technology, the present invention provides a configuration data processing method, device, and system for low-code application development, which logically splits and reorganizes the configuration data, and by using the method of storing multiple segments of XML in a non-relational database, reduces the resource consumption during the access of the configuration data, improves the parsing speed of the front-end and the back-end, and thus greatly improves the software development efficiency of the platform.

[0005] The technical solution adopted by the present invention to overcome its technical problems is as follows:

[0006] The first aspect of the present invention proposes a configuration data processing method for low-code application development, specifically including: dividing the configuration data of low-code application development into several hierarchical sub-files based on its logical structure, where the upper and lower sub-files are associated through identifiers, and the identifiers correspond to the sub-files one by one based on the logical structure of the configuration data; storing the several sub-files in a non-relational database respectively.

[0007] Further, the sub-files are divided into several levels based on the logical structure of the configuration data, and the upper-level sub-files include at least the identifiers of the lower-level sub-files.

[0008] Further, it also includes that when the configuration data changes, modifying the corresponding sub-file based on the identifier and updating and storing the changed sub-file to a non-relational database.

[0009] Further, when the configuration data changes, modifying the corresponding sub-file based on the identifier and updating and storing the changed sub-file to a non-relational database specifically includes: if a new control is added to the configuration data developed based on low-code applications, adding a new sub-file based on the new control, adding the identifier and / or attributes corresponding to the new sub-file to its upper-level sub-file, and saving the new sub-file and the updated upper-level sub-file to a non-relational database.

[0010] Further, it also includes combining several received sub-files and their identifiers into complete configuration data for low-code applications.

[0011] Further, the identifier is in the form of a code or coordinates, and the logical structure is the hierarchical structure of the configuration data.

[0012] Further, the non-relational database includes MongoDB.

[0013] Further, the sub-file is in XML format or JSON string.

[0014] The second aspect of the present invention proposes a configuration data processing device for low-code application development, which at least includes a configuration data splitting and recombining module, a file analysis module, and a data storage module; the configuration data splitting and recombining module is used to split the configuration data developed by low-code applications into several sub-files based on the logical structure, and to recombine several received sub-files into a configuration data file; the file analysis module is used to generate a unique identifier to correspond to the hierarchical sub-files and to update the content of the sub-files based on the changes in the configuration data; the data storage module is used to store the updated several sub-files to a non-relational database or to read several sub-files from a non-relational database.

[0015] The third aspect of the present invention proposes a configuration data processing system for low-code application development, which at least includes a client and a server for two-way communication. The client is used to run the configuration data processing method for low-code application development according to any one of claims 1-8, and the server is used to run a non-relational database.

[0016] The beneficial effects of the present invention are:

[0017] 1. By logically splitting and reorganizing the configuration data, storing it in a non-relational database in the form of multi-level XML files, or reading the multi-level XML files from the non-relational database, the access range of the data is controlled at a smaller granularity, reducing the amount of data transmitted between the front and back ends, minimizing the occupation of network resources, and improving the saving efficiency.

[0018] 2. Avoiding the access operations of large text fields in the relational database reduces the resource occupation between the front and back ends and improves the platform response efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic flowchart of a configuration data processing method based on low-code application development according to an embodiment of the present invention;

[0020] Figure 2 It is a schematic diagram of low-code development configuration according to an embodiment of the present invention;

[0021] Figure 3 It is a schematic diagram of a page configuration sub-file according to an embodiment of the present invention;

[0022] Figure 4 It is a schematic diagram of a control configuration sub-file according to an embodiment of the present invention;

[0023] Figure 5 It is a schematic diagram of an identification association sub-file according to an embodiment of the present invention;

[0024] Figure 6 It is a schematic diagram of configuration data processing for changing control attributes according to an embodiment of the present invention;

[0025] Figure 7 It is a schematic diagram of configuration data processing for adding a new control according to an embodiment of the present invention;

[0026] Figure 8 It is a schematic diagram of multi-level configuration data processing according to an embodiment of the present invention;

[0027] Figure 9 It is a schematic diagram of a configuration data processing device based on low-code application development according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE INVENTION

[0028] Before describing a configuration data processing method, device, and system based on low-code application development of the present invention, some proprietary terms are first explained:

[0029] Low-code development platform: It refers to a development platform that can quickly generate application programs without coding or with a small amount of code. It is a method of developing application programs through visualization, enabling developers with different experience levels to create web and mobile application programs through a graphical user interface, using drag-and-drop components and model-driven logic..

[0030] Configuration: It means "configuration", "setting", etc. It refers to the way that users can complete the software functions they need through a simple way similar to "building blocks", without writing computer programs.

[0031] XML: The full name is Extensible Markup Language, which is an extensible markup language. It can be used to mark data and define data types. It is a source language that allows users to define their own markup languages. It is very suitable for transmission on the World Wide Web and provides a unified method to describe and exchange structured data independent of applications or vendors. It is a cross-platform, content-dependent technology in the Internet environment and an effective tool for processing distributed structured information today. As early as 1998, the W3C released the XML 1.0 specification and used it to simplify the transmission of document information on the Internet.

[0032] JSON: The full name is JavaScript Object Notation, which is a lightweight data exchange format. It is based on a subset of ECMAScript (the js specification formulated by the European Computer Society) and uses a text format completely independent of programming languages to store and represent data. The simple and clear hierarchical structure makes JSON an ideal data exchange language. It is easy for people to read and write, and at the same time easy for machines to parse and generate, effectively improving the network transmission efficiency.

[0033] Relational database: It refers to a database that uses the relational model to organize data. It stores data in the form of rows and columns for easy understanding by users. This series of rows and columns in a relational database is called a table, and a set of tables constitutes a database. Users retrieve data in the database through queries, and a query is an execution code used to limit certain areas in the database. The relational model can be simply understood as a two-dimensional table model, and a relational database is a data organization composed of two-dimensional tables and the relationships between them.

[0034] Non-relational database: It refers to a database that is different from relational databases and does not guarantee the ACID characteristics of relational data. It has the advantages of easy expansion, support for large amounts of data, high performance, and simple structure.

[0035] For the convenience of those skilled in the art to better understand the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. The following is only exemplary and does not limit the protection scope of the present invention.

[0036] As Figure 1 shown, it is a schematic flowchart of a configuration data processing method based on low-code application development of the present invention, including:

[0037] S1. Divide the configuration data of low-code application development into several hierarchical sub-files based on its logical structure. Among them, the upper and lower level sub-files are associated through identifiers, and the identifiers correspond one-to-one with the sub-files based on the logical structure of the configuration data.

[0038] Such as Figure 2 The interface for configuration using the low-code development platform is shown. In an embodiment of the present invention, this page includes 4 controls, namely Control A, Control B, Control C, and Control D, and each control has its own attributes. According to the logical structure of the configuration data of this page, that is, the composition structure of the page, the configuration data of this page is divided into five XMLs, namely page.xml and the other four xmls for storing the attributes of the four controls, corresponding respectively as Figure 3 and Figure 4 shown.

[0039] Since the types of the four controls are different and the number of attributes is also different, a unique code field generated by the program is included in the XML corresponding to each control to correspond to the xml element of page.xml. Such as Figure 5 shown, the identifier corresponding to A.xml is code001, the identifier corresponding to B.xml is code002, the identifier corresponding to C.xml is code003, the identifier corresponding to D.xml is code004, and page.xml includes code001, code002, code003, and code004 of A.xml, B.xml, C.xml, and D.xml at its next level.

[0040] It should be noted that in the above embodiment, the sub-files are in XML format and can also be in the form of JSON strings. And in addition to using code association for the representation form, coordinate association can also be used.

[0041] S2. Store several sub-files into a non-relational database respectively.

[0042] Storing 5 XMLs into a non-relational database can save the current configuration information. In an embodiment of the present invention, the non-relational database uses MongoDB.

[0043] In some embodiments, such as Figure 6 shown, when the configuration data is modified, it is not necessary to save all five XMLs again, and only the XML file corresponding to the specific control that is modified needs to be saved. Such as Figure 6 In, if the attributes of Control B are modified, then only B.XML needs to be saved, as Figure 6 shown.

[0044] In some embodiments, such asFigure 7 As shown, if a new control E is added, only the sub-files E.xml and page.xml corresponding to the new control E need to be stored in the non-relational database, and other sub-files do not need to be updated and stored.

[0045] In some embodiments, some pages include complex controls. For example, if the controls are divided into multiple levels, the multi-level XML sub-file method can be used for storage. As Figure 8 shown, section.xml is a complex control nested with multiple controls. Then, the section.xml sub-file has both the unique code corresponding to section.xml and the codes of the sub-files corresponding to controls c and d. The page includes the codes of section.xml, a.xml, and b.xml. When the attributes of control d change, only d.xml, section.xml, and page.xml need to be updated and stored in the non-relational database. If a new control e is added, which is at the next level of control section.xml, then the identifier and attributes corresponding to control e are added to its upper-level sub-file section.xml, and section.xml with the added identifier and attributes of control e is added to its upper-level sub-file page.xml, and d.xml, section.xml, and page.xml are all updated and stored in the non-relational database.

[0046] The configuration data is logically split and reorganized, and stored in the non-relational database in the form of multi-level XML files. Thus, the access range of the data is controlled at a smaller granularity, avoiding the operation of parsing a large XML file at one time, reducing the amount of data transmitted between the front and back ends, and also improving the processing efficiency of the front and back ends.

[0047] In some embodiments, the front and back ends generally communicate via a network. Therefore, using the multi-level XML file method, especially when the configuration data is modified, only the changed part of the XML needs to be transmitted to the backend for storage, which can greatly reduce the occupation of network resources and improve the storage efficiency.

[0048] In some embodiments, it is also possible to combine multiple xmls returned by the backend server into complete configuration data and display the configuration interface.

[0049] If a relational database such as Oracle is used, when storing large string data, such as sub-files in XML format, the length of the XML generally exceeds tens of thousands. Therefore, only large fields can be used for storage. Generally, character fields in relational databases can only store less than 4000 characters. Therefore, for characters exceeding this limit, large field types such as CLOB have to be used. The efficiency of these field types is relatively low when inserting, querying, and modifying, and they also consume a large amount of hardware resources such as the CPU and memory of the database server. By using a non-relational database, this problem can be avoided, and the access efficiency of XML files can be greatly improved.

[0050] In another embodiment of the present invention, a configuration data processing device based on low-code application development is also proposed, which at least includes a configuration data splitting and recombining module, a file analysis module, and a data storage module; the configuration data splitting and recombining module is used to split the configuration data developed by low-code applications into several sub-files based on the logical structure, and to recombine the received several sub-files into a configuration data file; the file analysis module is used to generate a unique identifier to correspond to the hierarchical sub-files, and to update the content of the sub-files based on the changes in the configuration data; the data storage module is used to store the updated several sub-files into a non-relational database, or to read several sub-files from the non-relational database.

[0051] In another embodiment of the present invention, a configuration data processing system based on low-code application development is also proposed, which includes a client and a server for two-way communication. The client is used to run the above-mentioned configuration data processing method based on low-code application development, and the server is used to run a non-relational database.

[0052] In some embodiments, both the client and the server communicate through the network. The server returns multiple xmls to the client, and the client combines them into a complete configuration data and displays the configuration interface. Or after the client modifies the configuration data, it can locate the sub-xml involved in the modification and return the updated result to the backend server for updating.

[0053] Each embodiment in this specification is described in a progressive manner. The same or similar parts between each embodiment can be referred to each other, and the key point of each embodiment is to illustrate the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The systems and system embodiments described above are only illustrative, and some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.

[0054] Those skilled in the art will appreciate that the elements and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described in terms of function in the above description. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present invention.

[0055] The foregoing has described only the basic principles and preferred embodiments of the present invention. Those skilled in the art can make many variations and improvements based on the above description, and these variations and improvements should fall within the scope of protection of the present invention.

Claims

1. A configuration data processing method based on low-code application development, characterized in that, specifically including: divide the configuration data of low-code application development into several hierarchical sub-files based on its logical structure, where the upper and lower level sub-files are associated through identifiers, and the identifiers correspond one-to-one with the sub-files based on the logical structure of the configuration data; the sub-files are divided into several levels based on the logical structure of the configuration data, and the upper-level sub-file at least includes the identifiers of the lower-level sub-files, and the sub-files are in XML format or JSON strings; store several sub-files into a non-relational database respectively, and the non-relational database includes MongoDB; when the configuration data changes, modify the corresponding sub-file based on the identifier, and update and store the changed sub-file into the non-relational database, specifically including: if a new control is added to the configuration data based on low-code application development, add a new sub-file based on the new control, and add the identifier and / or attributes corresponding to the new sub-file to its upper-level sub-file, and save the new sub-file and the updated upper-level sub-file to the non-relational database; and combine several received sub-files and their identifiers into a complete configuration data for low-code application.

2. The configuration data processing method based on low-code application development according to claim 1, characterized in that the identifier is in the form of a code or coordinates, and the logical structure is the hierarchical structure of the configuration data.

3. A configuration data processing device based on low-code application development, used to implement the configuration data processing method according to claim 1 or 2, characterized in that, at least includes a configuration data splitting and recombination module, a file analysis module and a data storage module; the configuration data splitting and recombination module is used to split the configuration data of low-code application development into several sub-files based on the logical structure, and to recombine several received sub-files into a configuration data file; the file analysis module is used to generate a unique identifier to correspond to the hierarchical sub-files, and to update the content of the sub-files based on the change of the configuration data; the data storage module is used to store several updated sub-files into the non-relational database, or to read several sub-files from the non-relational database.

4. A configuration data processing system based on low-code application development, at least including a client and a server with two-way communication, characterized in that: the client is used to run the configuration data processing method based on low-code application development according to any one of claims 1-2, and the server is used to run the non-relational database. ​

Citation Information

Patent Citations

  • Method and system for organizational management on XML documents in XML database system

    CN102567545A

  • Control method and device for non-relational database

    CN107122435A