Application system credential innovation workload assessment method, device, equipment and medium
By intercepting and filtering the database interaction commands of the application system and identifying incompatible codes and commands, it solves the problem of complexity and low efficiency in Xinchuang transformation workload assessment, achieves accurate workload assessment and improves assessment efficiency.
Patent Information
- Application Number
- CN202410876789.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-01
AI Technical Summary
Existing technologies cannot effectively evaluate the workload of application transformation in the Xinchuang system, resulting in evaluation complexity and low efficiency.
Intercept the database interaction commands of the application system to be transformed through the preset code model, obtain the system source code, filter its compatibility, identify incompatible codes and commands, and calculate the transformation workload.
It achieves accurate estimation of Xinchuang's transformation workload, improves assessment efficiency, identifies compatibility issues and calculates the transformation workload.
Smart Images

Figure CN118733113A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of application program transformation technology, and in particular to a method, device, equipment and medium for evaluating the workload of application system information innovation transformation. Background Art
[0002] The trusted innovation system is a series of information technology systems based on domestic software and hardware established in the context of information technology application innovation in order to achieve independent control in the field of information technology and safeguard national information security. In order to safeguard information security, the application system needs to be transformed into trusted innovation so that the transformed application can run in the trusted innovation system. It is necessary to transform the software and database in multiple aspects. When the application system is transformed into trusted innovation, the workload of the transformation is evaluated. Since the trusted innovation system is an information technology system based on domestic software and hardware, the transformation of the application is complex. The existing technology usually evaluates the workload based on the basic situation of the application, and it is difficult to evaluate the workload of the application for trusted innovation transformation in the trusted innovation system. Summary of the invention
[0003] The present invention provides a method, device, equipment and medium for evaluating the workload of information-based innovation and transformation of an application system, so as to solve the technical problem that the workload of information-based innovation and transformation of an application program cannot be evaluated in the prior art.
[0004] According to one aspect of the present invention, a method for evaluating the workload of information innovation transformation of an application system is provided, comprising:
[0005] The preset code model is used to intercept the database interaction commands during the operation of the application system to be modified.
[0006] And obtain the system source code of the application system to be transformed;
[0007] Filter the compatibility of the system source code and the database interaction command in the information innovation system, and determine the incompatible code corresponding to the system source code and the incompatible database command corresponding to the database interaction command;
[0008] The transformation workload of the application system to be transformed is determined according to the incompatible code and the incompatible database command.
[0009] According to another aspect of the present invention, there is provided a device for evaluating the workload of an application system informatization and innovation transformation, comprising:
[0010] An evaluation preparation module is used to intercept database interaction commands during the operation of the application system to be modified through a preset code model, and obtain the system source code of the application system to be modified;
[0011] A compatibility filtering module, used to filter the compatibility of the system source code and the database interaction command in the information innovation system, and determine the incompatible code corresponding to the system source code and the incompatible database command corresponding to the database interaction command;
[0012] The workload assessment module is used to determine the transformation workload of the application system to be transformed according to the incompatible code and the incompatible database command.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the application system information innovation transformation workload assessment method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the application system information innovation transformation workload assessment method described in any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention intercepts the database interaction commands of the application system to be transformed during operation through a preset code model and obtains the system source code of the application system to be transformed. When transforming the application system into a trusted innovation, the workload can be calculated for the system source code and database interaction commands of the transformed trusted innovation application respectively; the compatibility of the system source code and the database interaction commands in the trusted innovation system is filtered to determine the incompatible code corresponding to the system source code and the incompatible database commands corresponding to the database interaction commands. By filtering the compatibility of the system source code and the database interaction commands, the compatibility problems existing in the trusted innovation transformation of the application are identified, and the workload of the compatibility problems can be estimated to improve the accuracy of the workload estimation; by determining the transformation workload of the application system to be transformed according to the incompatible code and the incompatible database commands, the transformation workload can be calculated for the incompatible code and the incompatible database commands. The technical problem that the workload of the trusted innovation transformation of the application cannot be evaluated in the prior art can be solved, and the accurate estimation of the workload of the trusted innovation transformation can be achieved, and the efficiency of estimating the workload of the trusted innovation transformation can be improved.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A flowchart of a method for evaluating the workload of information innovation transformation of an application system is provided for an embodiment of the present invention;
[0022] Figure 2 A flowchart of another method for evaluating the workload of information innovation transformation of an application system provided in an embodiment of the present invention;
[0023] Figure 3 A schematic diagram of the structure of an application system information innovation transformation workload assessment device provided in an embodiment of the present invention;
[0024] Figure 4 A schematic structural diagram of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only 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 should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Figure 1 The present invention provides a flowchart of a method for evaluating the workload of an application system informatization and innovation transformation. This embodiment can be applied to identifying the workload of transformation when an application system is informatization and innovation transformation. The method can be executed by an application system informatization and innovation transformation workload evaluation device. The application system informatization and innovation transformation workload evaluation device can be implemented in the form of hardware and / or software. The application system informatization and innovation transformation workload evaluation device can be configured in an electronic device. Figure 1 As shown, the method includes:
[0028] S110 , intercepting database interaction commands during the operation of the application system to be modified through a preset code model, and obtaining system source code of the application system to be modified.
[0029] The preset code model may be a proxy model pre-set to intercept data query commands between the application system and the database. It should be noted that the preset code model is set between the application system to be modified and the database, and can serve as an intermediate layer of the application system to be modified, acting as a proxy for database interaction between the application system to be modified and the database.
[0030] Among them, the application system to be transformed can be an application system that needs to be transformed in the trusted innovation system. It should be noted that the application system to be transformed can be an application that can run in the trusted innovation system and has application functions. The current application needs to be upgraded and transformed, and then the application is determined as the application system to be transformed; the application system to be transformed can be an application running in other system environments. The application needs to be migrated and transformed to the trusted innovation system, and then the application is determined as the application system to be transformed.
[0031] The database interaction command may be a command that can operate on a database and an object. It should be noted that the database interaction command generally covers multiple aspects of the database, and can create data, query data, modify data, and delete data in the database. Exemplarily, the database interaction command may be SQL (Structured Query Language), and the database interaction command may include data definition language, data manipulation language, data control language, and database connection and interaction.
[0032] The system source code may be a computer program code for building and supporting the operation of the application system to be modified. It should be noted that the system source code is usually written in one or more programming languages, and each programming language follows a specific programming specification. Exemplarily, the programming language of the system source code may be Java, Python, C++, JavaScript, and other programming languages.
[0033] Specifically, a proxy model is set between the application system to be modified and the database corresponding to the application system to be modified. When the application system to be modified is running, the database interaction commands during the operation of the application system to be modified are intercepted through the code model, and the system source code of the application system to be modified is obtained.
[0034] S120. Filter the compatibility of the system source code and the database interaction command in the trusted computing system, and determine the incompatible codes corresponding to the system source code and the incompatible database commands corresponding to the database interaction command.
[0035] Optionally, since the Xinchuang system is an information technology system of domestic software and hardware, it usually uses an independent software and hardware system, and the application system to be transformed also needs to run in an independent operating system. It is necessary to filter the system source code and database interaction commands for compatibility to determine the incompatibility between the application system to be transformed and the operating system. Exemplarily, the independent operating system can be the Kylin system.
[0036] Among them, incompatible codes can be code snippets that cannot be run in the trusted innovation system or produce expected results. Incompatible database commands can be database commands that cannot be recognized or run by the database in the trusted innovation system.
[0037] Specifically, after obtaining the system source code and database interaction commands of the application system to be transformed, incompatibility filtering is performed on the system source code and database interaction commands in the trusted innovation system to identify incompatible codes and incompatible database commands in the system source code and database interaction commands in the trusted innovation system.
[0038] S130: Determine the transformation workload of the application system to be transformed according to the incompatible code and the incompatible database command.
[0039] Among them, the transformation workload can be the workload of information technology transformation for the application system to be transformed.
[0040] Specifically, when the application system to be transformed is undergoing information innovation transformation, the workload is calculated through incompatible codes and incompatible database commands to obtain the transformation workload of the application system to be transformed.
[0041] The technical solution of the embodiment of the present invention intercepts the database interaction commands of the application system to be transformed during operation through a preset code model and obtains the system source code of the application system to be transformed. When transforming the application system into a trusted innovation, the workload can be calculated for the system source code and database interaction commands of the transformed trusted innovation application respectively; the compatibility of the system source code and the database interaction commands in the trusted innovation system is filtered to determine the incompatible code corresponding to the system source code and the incompatible database commands corresponding to the database interaction commands. By filtering the compatibility of the system source code and the database interaction commands, the compatibility problems existing in the trusted innovation transformation of the application are identified, and the workload of the compatibility problems can be estimated to improve the accuracy of the workload estimation; by determining the transformation workload of the application system to be transformed according to the incompatible code and the incompatible database commands, the transformation workload can be calculated for the incompatible code and the incompatible database commands. The technical problem that the workload of the trusted innovation transformation of the application cannot be evaluated in the prior art can be solved, and the accurate estimation of the workload of the trusted innovation transformation can be achieved, and the efficiency of estimating the workload of the trusted innovation transformation can be improved.
[0042] Figure 2 This is a flowchart of another method for evaluating the workload of an application system credible innovation transformation provided by an embodiment of the present invention. The relationship between this embodiment and the above embodiment is a specific method for filtering the compatibility of an application to be transformed in a credible innovation transformation system. Figure 2 As shown, the method includes:
[0043] S210: intercepting database interaction commands during the operation of the application system to be modified through a preset code model, and obtaining system source code of the application system to be modified.
[0044] S220. Obtain the incompatible semantic information and incompatible command information of the trusted innovation system.
[0045] Among them, the incompatible semantic information can be declarations, definitions, statements, functions and patterns that are incompatible with the source code of the application system to be transformed in the trusted innovation system. It should be noted that the declaration is used to inform the name and type of the identifier, the definition can be used to fully describe the identifier, the statement can be the basic unit of execution of the application, the function can be a code block that performs a specific function, and the pattern can be the structure, algorithm and design principle of the code in the application. Declarations, definitions, statements, functions and patterns that cannot be recognized or run in the trusted innovation system are regarded as incompatible semantic information.
[0046] Among them, the incompatible command information can be that the database in the information creation system cannot recognize data types, functions and expressions, reserved words and identifiers and special syntax. It should be noted that special syntax can be commands for operating data in the database, functions can be commands for processing data in the database, data types can be the storage types of data in the database, expressions can be used to combine and operate data, reserved words can be words with specific meanings in the database, and identifiers can be user-defined database object names.
[0047] Specifically, obtain the incompatible semantic information and incompatible command information of the trusted computing system.
[0048] S230: Perform compatibility filtering on the system source code according to the incompatible semantic information to determine the incompatible code.
[0049] Specifically, after obtaining the incompatible semantic information in the trusted innovation system, the system source code is filtered for compatibility through the incompatible semantic information to identify incompatible codes existing in the system source code.
[0050] Optionally, in another optional embodiment of the present invention, the performing compatibility filtering on the system source code according to the incompatible semantic information to determine the incompatible code includes:
[0051] A code filtering rule is defined based on the incompatible semantic information; and the system source code is subjected to compatibility filtering according to the code filtering rule to determine the incompatible code.
[0052] Among them, the code filtering rule can be used as a scanning rule for scanning detection code. It should be noted that the rule definition is based on the incompatible semantic information, the incompatible code to be filtered is clearly defined, and the code filtering rule is constructed. Exemplarily, the code filtering rule is defined as a statement whose meaning cannot be clearly defined by the operating system, and a function or variable that does not exist in the operating system.
[0053] Specifically, by defining the incompatible semantic information as a code filtering rule, the compatibility filtering of the system source code is performed according to the code filtering rule, and the code fragments satisfying the code filtering rule are determined as incompatible codes.
[0054] Optionally, in another optional embodiment of the present invention, the performing compatibility filtering on the system source code according to the code filtering rule to determine the incompatible code includes:
[0055] The lexical analysis generator is used to perform lexical analysis on the system source code to determine the code analysis information corresponding to the system source code; the code analysis information is semantically analyzed according to the code filtering rules using a preset syntax analysis method to obtain incompatible codes.
[0056] The lexical analysis generator may be a tool for lexical scanning and decomposition of source code. It should be noted that the lexical analysis generator can read the system source code, scan and identify each symbol, letter and character of the system source code, obtain keywords, identifiers, operators and separators in the system source code, and then obtain code analysis information.
[0057] The code analysis information may be a meaningful basic unit in the system source code. It should be noted that the code analysis information is obtained by converting the system source code and is an information unit that cannot be divided.
[0058] The preset syntax analysis method may be a method pre-set for semantic analysis of the system source code. It should be noted that the preset syntax analysis method can construct a syntax structure according to the syntax rules and code analysis information, and check and filter the syntax structure through the code filtering rules, and then filter the syntax structure where there is compatibility, obtain the location and reason of the compatibility, and then obtain the incompatible code in the system source code.
[0059] Exemplarily, the syntax analysis method may include an abstract syntax tree method or a control flow graph method.
[0060] Specifically, after establishing the code filtering rules, the system source code is lexically analyzed and identified through a lexical analysis generator to determine the code analysis information corresponding to the system source code, the code analysis information is semantically identified through a preset syntax analysis method, and incompatible filtering is performed according to the code filtering rules to obtain incompatible code.
[0061] S240: Perform compatibility filtering on the database interaction command according to the incompatible command information to determine the incompatible database command.
[0062] Specifically, after the incompatible command information is obtained, the database interaction commands are filtered for compatibility based on the incompatible command information to identify incompatible database commands in the database interaction commands.
[0063] Optionally, in another optional embodiment of the present invention, compatibility filtering is performed on the database interaction command according to the incompatible command information to determine the incompatible database command, including: defining a filtering rule library based on the incompatible command information; matching the database interaction command through the filtering rule library to determine the incompatible database command.
[0064] Among them, the filtering rule base can be a rule base for scanning and matching database interaction instructions. It should be noted that in defining the filtering rule base, the incompatible command information is used as a filtering condition, and the standard of the database interaction command in the information creation system is determined, and then the filtering rule base is established based on the incompatible command information and the database interaction command standard in the information creation system. Exemplarily, the filtering rule base can include rules such as data types, functions and expressions, reserved words and identifiers, and special syntax in the database.
[0065] Specifically, after obtaining the incompatible command information, a filtering rule library is established based on the incompatible command information and the database interaction command standards in the trusted computing system, the intercepted database interaction commands are matched with the filtering rule paths, and the successfully matched database interaction commands are treated as incompatible database commands.
[0066] S250: Determine the transformation workload of the application system to be transformed according to the incompatible code and the incompatible database command.
[0067] Optionally, in another optional embodiment of the present invention, determining the transformation workload of the application system to be transformed according to the incompatible code and the incompatible database command includes:
[0068] The complexity of the incompatible code is analyzed by a code complexity calculation method to evaluate the code workload; the complexity of the incompatible database commands is evaluated to determine the database command workload; and the transformation workload is determined based on the code workload and the database command workload.
[0069] Among them, the code complexity calculation method can be an algorithm pre-selected for calculating the complexity of software code. Exemplarily, the code complexity calculation method can be a cyclomatic complexity algorithm. It should be noted that cyclomatic complexity can be a criterion for judging code complexity. Cyclomatic complexity can be used to measure the complexity of a module judgment structure, reflecting the complexity of the code control flow structure. When calculating code complexity through the cyclomatic complexity algorithm, it is necessary to draw a control flow graph for each code snippet in the incompatible code. The nodes in the control flow graph represent code snippets and control flow transfers; then calculate the number of edges e and the number of nodes n in the control flow graph, calculate the number of connected components p, and then use the formula to calculate the code complexity. The calculation formula can be as follows:
[0070] V(G)=e-n+2p
[0071] Among them, V(G) can be expressed as the code complexity, and the value of p can be set to 1.
[0072] Optionally, after the code complexity of the incompatible code is calculated by the code complexity calculation method, the incompatible code is evaluated based on the code complexity to obtain the code workload, wherein the code workload may be the workload of migrating and modifying the incompatible code.
[0073] Optionally, after obtaining the incompatible database command, a structural analysis is performed on the incompatible database command, and a complexity assessment is performed based on the analysis result to obtain the database command workload. The database command workload may be the workload of migrating and modifying the incompatible database command.
[0074] Optionally, in another optional embodiment of the present invention, the performing complexity evaluation on the incompatible database commands to determine the database command workload includes:
[0075] Performing structural analysis on the incompatible database command by a preset structural analysis method to determine connection type information, subquery information, condition and filter information, grouping and sorting information, and function and expression information corresponding to the incompatible database command;
[0076] A weighted complexity evaluation is performed based on the connection type information, subquery information, condition and filter information, grouping and sorting information, and function and expression information to determine the database command workload.
[0077] The preset structural analysis method may be a method preset for performing structural decomposition and identification on database interaction commands.
[0078] Optionally, when performing structural analysis on incompatible database commands by a preset structural analysis method, the incompatible database commands are first decomposed to obtain lexical units of the incompatible database commands, and then the lexical units are identified according to the grammatical rules of the database interaction commands to obtain the connection type information, subquery information, condition and filter information, grouping and sorting information, and function and expression information corresponding to the incompatible database commands. Among them, the connection type information can be various connection types and quantities in the database, the subquery information can be the depth and quantity of non-correlated subqueries and related subqueries, the condition and filter information can be the number and type of each conditional statement, the grouping and sorting information can be the number and type of grouping commands, and the function and expression information can be the type and number of non-indexable functions and the complexity of each expression.
[0079] Optionally, for the connection type information, subquery information, condition and filtering information, grouping and sorting information, and function and expression information contained in the incompatible database command, complexity analysis is performed on the connection type information, subquery information, condition and filtering information, grouping and sorting information, and function and expression information to determine the connection complexity corresponding to the connection type information, the subquery complexity corresponding to the subquery information, the condition and filtering complexity corresponding to the condition and filtering information, the grouping and sorting complexity corresponding to the grouping and sorting information, and the function and expression complexity corresponding to the function and expression information. By analyzing the connection complexity, subquery complexity, condition and filtering complexity Weights and quantitative scores are assigned to the join complexity, grouping and sorting complexity, and function and expression complexity to obtain a first weight and a first score corresponding to the join complexity, a second weight and a second score corresponding to the subquery complexity, a third weight and a third score corresponding to the condition and filtering complexity, a fourth weight and a fourth score corresponding to the grouping and sorting complexity, and a fifth weight and a fifth score corresponding to the function and expression complexity; calculations are performed based on each weight and the score corresponding to each weight to obtain the complexity corresponding to the incompatible database commands; and evaluation is performed based on the data volume of the incompatible database commands and the complexity corresponding to the incompatible database commands to obtain the database command workload.
[0080] Optionally, after obtaining the code workload and the database command workload, the transformation workload is obtained based on the code workload and the database command workload.
[0081] The technical solution of the embodiment of the present invention can define corresponding code filtering rules and filtering rule bases based on the incompatible semantic information and incompatible command information of the trusted innovation system, and then perform compatibility filtering on the system source code and database command information, and can identify the incompatible code and incompatible command information of the application system to be transformed in the trusted innovation system, realize automatic compatibility identification in the trusted innovation transformation process, and improve the efficiency of the trusted innovation transformation workload. The technical solution of the embodiment of the present invention can solve the technical problem that the workload of the trusted innovation transformation of the application program cannot be evaluated in the prior art, and realizes the accurate estimation of the workload of the trusted innovation transformation.
[0082] Figure 3 A schematic diagram of a structure of an application system information innovation transformation workload evaluation device provided by an embodiment of the present invention. Figure 3 As shown, the device includes: an evaluation preparation module 310, a compatibility filtering module 320 and a workload evaluation module 330; wherein,
[0083] An evaluation preparation module 310 is used to intercept database interaction commands during the operation of the application system to be modified through a preset code model, and obtain system source code of the application system to be modified;
[0084] A compatibility filtering module 320 is used to filter the compatibility of the system source code and the database interaction command in the information innovation system, and determine the incompatible code corresponding to the system source code and the incompatible database command corresponding to the database interaction command;
[0085] The workload evaluation module 330 is used to determine the transformation workload of the application system to be transformed according to the incompatible code and the incompatible database command.
[0086] The technical solution of the embodiment of the present invention intercepts the database interaction commands of the application system to be transformed during operation through a preset code model and obtains the system source code of the application system to be transformed. When transforming the application system into a trusted innovation, the workload can be calculated for the system source code and database interaction commands of the transformed trusted innovation application respectively; the compatibility of the system source code and the database interaction commands in the trusted innovation system is filtered to determine the incompatible code corresponding to the system source code and the incompatible database commands corresponding to the database interaction commands. By filtering the compatibility of the system source code and the database interaction commands, the compatibility problems existing in the trusted innovation transformation of the application are identified, and the workload of the compatibility problems can be estimated to improve the accuracy of the workload estimation; by determining the transformation workload of the application system to be transformed according to the incompatible code and the incompatible database commands, the transformation workload can be calculated for the incompatible code and the incompatible database commands. The technical problem that the workload of the trusted innovation transformation of the application cannot be evaluated in the prior art can be solved, and the accurate estimation of the workload of the trusted innovation transformation can be achieved, and the efficiency of estimating the workload of the trusted innovation transformation can be improved.
[0087] Optionally, the compatibility filtering module is specifically used for:
[0088] Obtain incompatible semantic information and incompatible command information of the trusted innovation system;
[0089] Perform compatibility filtering on the system source code according to the incompatible semantic information to determine the incompatible code;
[0090] The database interaction command is filtered for compatibility according to the incompatible command information to determine the incompatible database command.
[0091] Optionally, the compatibility filtering module is further used to:
[0092] Defining code filtering rules based on the incompatible semantic information;
[0093] Compatibility filtering is performed on the system source code according to the code filtering rule to determine the incompatible code.
[0094] Optionally, the compatibility filtering module is further used to:
[0095] Perform lexical analysis and recognition on the system source code through the lexical analysis generator to determine the code analysis information corresponding to the system source code;
[0096] The code analysis information is semantically analyzed according to the code filtering rules using a preset syntax analysis method to obtain incompatible codes.
[0097] Optionally, the compatibility filtering module is further used to:
[0098] defining a filtering rule base based on the incompatible command information;
[0099] The database interaction commands are matched through the filtering rule library to determine incompatible database commands.
[0100] Optionally, the workload assessment module is specifically used to:
[0101] Use code complexity calculation methods to analyze the complexity of incompatible codes and evaluate the code workload;
[0102] Performing complexity evaluation on the incompatible database commands to determine the workload of the database commands;
[0103] The transformation workload is determined according to the code workload and the database command workload.
[0104] Optionally, the workload assessment module is further used to:
[0105] Performing structural analysis on the incompatible database command by a preset structural analysis method to determine connection type information, subquery information, condition and filter information, grouping and sorting information, and function and expression information corresponding to the incompatible database command;
[0106] A weighted complexity evaluation is performed based on the connection type information, subquery information, condition and filter information, grouping and sorting information, and function and expression information to determine the database command workload.
[0107] The application system information innovation transformation workload assessment device provided in the embodiment of the present invention can execute the application system information innovation transformation workload assessment method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0108] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their modes are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0109] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0110] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer grid such as the Internet and / or various telecommunication grids.
[0111] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as the application system information innovation transformation workload assessment method.
[0112] In some embodiments, the application system information innovation transformation workload assessment method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the application system information innovation transformation workload assessment method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the application system information innovation transformation workload assessment method in any other appropriate manner (for example, by means of firmware).
[0113] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0114] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the modes / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0115] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0116] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0117] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a grid browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication grid). Examples of communication grids include: a local area network (LAN), a wide area network (WAN), a blockchain grid, and the Internet.
[0118] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication grid. The client and server relationship is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0119] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0120] This embodiment provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a method for evaluating the workload of an application system informatization and innovation transformation as provided in any embodiment of the present invention, the method comprising:
[0121] Intercept database interaction commands during the operation of the application system to be modified through a preset code model, and obtain the system source code of the application system to be modified;
[0122] Filter the compatibility of the system source code and the database interaction command in the information innovation system, and determine the incompatible code corresponding to the system source code and the incompatible database command corresponding to the database interaction command;
[0123] The transformation workload of the application system to be transformed is determined according to the incompatible code and the incompatible database command.
[0124] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0125] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0126] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0127] Computer program code for performing the operation of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of grid, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0128] It should be understood by those skilled in the art that the above modules or steps of the present invention can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a grid composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0129] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0130] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for evaluating the workload of information innovation transformation of an application system, characterized in that: include: Intercept database interaction commands during the operation of the application system to be modified through a preset code model, and obtain the system source code of the application system to be modified; Filter the compatibility of the system source code and the database interaction command in the information innovation system, and determine the incompatible code corresponding to the system source code and the incompatible database command corresponding to the database interaction command; The transformation workload of the application system to be transformed is determined according to the incompatible code and the incompatible database command.
2. The method according to claim 1, characterized in that The filtering of the compatibility of the system source code and the database interaction command in the information innovation system, and determining the incompatible code corresponding to the system source code and the incompatible database command corresponding to the database interaction command, includes: Obtain incompatible semantic information and incompatible command information of the trusted innovation system; Perform compatibility filtering on the system source code according to the incompatible semantic information to determine the incompatible code; The database interaction command is filtered for compatibility according to the incompatible command information to determine the incompatible database command.
3. The method according to claim 2, characterized in that The performing compatibility filtering on the system source code according to the incompatible semantic information to determine the incompatible code includes: Defining code filtering rules based on the incompatible semantic information; Compatibility filtering is performed on the system source code according to the code filtering rule to determine the incompatible code.
4. The method according to claim 3, characterized in that The compatibility filtering of the system source code according to the code filtering rule to determine the incompatible code includes: Perform lexical analysis and recognition on the system source code through the lexical analysis generator to determine the code analysis information corresponding to the system source code; The code analysis information is semantically analyzed according to the code filtering rules using a preset syntax analysis method to obtain incompatible codes.
5. The method according to claim 2, characterized in that: The performing compatibility filtering on the database interaction command according to the incompatible command information to determine the incompatible database command includes: defining a filtering rule base based on the incompatible command information; The database interaction commands are matched through the filtering rule library to determine incompatible database commands.
6. The method according to claim 2, characterized in that Determining the transformation workload of the application system to be transformed according to the incompatible code and the incompatible database command includes: Use code complexity calculation methods to analyze the complexity of incompatible codes and evaluate the code workload; Performing complexity evaluation on the incompatible database commands to determine the workload of the database commands; The transformation workload is determined according to the code workload and the database command workload.
7. The method according to claim 6, characterized in that The performing complexity evaluation on the incompatible database commands to determine the database command workload includes: Performing structural analysis on the incompatible database command by a preset structural analysis method to determine connection type information, subquery information, condition and filter information, grouping and sorting information, and function and expression information corresponding to the incompatible database command; A weighted complexity evaluation is performed based on the connection type information, subquery information, condition and filter information, grouping and sorting information, and function and expression information to determine the database command workload.
8. A workload assessment device for application system information innovation transformation, characterized in that: include: An evaluation preparation module is used to intercept database interaction commands during the operation of the application system to be modified through a preset code model, and obtain the system source code of the application system to be modified; A compatibility filtering module, used to filter the compatibility of the system source code and the database interaction command in the information innovation system, and determine the incompatible code corresponding to the system source code and the incompatible database command corresponding to the database interaction command; The workload assessment module is used to determine the transformation workload of the application system to be transformed according to the incompatible code and the incompatible database command.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the application system information innovation transformation workload assessment method described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the processor to implement the application system information innovation transformation workload assessment method described in any one of claims 1-7 when executed.
