Business processing method and device, equipment and storage medium

By analyzing the syntax tree of the business source code and merging independent data query functions, we can optimize multiple single queries into batch queries, solve the problem of time-consuming data queries, and improve the efficiency of data query and business processing.

CN120763203APending Publication Date: 2025-10-10SHANGHAI SHIZHUANG INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410379858.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-29
Publication Date
2025-10-10

AI Technical Summary

Technical Problem

During business processing, data query takes a long time, affecting business processing efficiency.

Method used

Analyze the syntax tree of the business source code to identify multiple data query functions that are independent of each other and are used to access the same external data source. Merge these functions to form batch queries, generate optimized syntax trees, and execute executable code.

Benefits of technology

Batch query reduces the number of queries to external data sources, improves data query efficiency, and thus improves business processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120763203A_ABST
    Figure CN120763203A_ABST
Patent Text Reader

Abstract

The invention provides a business processing method and device, equipment and a storage medium. The method comprises the following steps: analyzing a syntax tree of a business source code to obtain a function dependency relationship in the syntax tree and a first data query function used for accessing an external data source; determining a plurality of second data query functions from the first data query functions according to the function dependency relationship; wherein the plurality of second data query functions do not depend on one another and are used for accessing the same external data source; combining the plurality of second data query functions to obtain an optimized syntax tree; and generating an executable code according to the optimized syntax tree, and executing the executable code. According to the method, the data query efficiency of the business source code can be improved, so that the business processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a business processing method, apparatus, device, and storage medium. Background Art

[0002] Typically, during business processing, there's a need to query external data sources for data. Data querying is an operation that consumes a lot of input / output resources. If data queries are time-consuming, they can affect business processing efficiency. Therefore, for those skilled in the art, reducing data query time and improving data query efficiency during business processing is a pressing technical issue to be addressed. Summary of the Invention

[0003] Based on this, the embodiments of the present application provide a business processing method, apparatus, device and storage medium, which can realize batch data query, thereby reducing the time consumption of data query in the business processing process, improving data query efficiency, and thus improving business processing efficiency.

[0004] In a first aspect, an embodiment of the present application provides a service processing method, including:

[0005] Analyze a syntax tree of the service source code to obtain function dependencies in the syntax tree and a first data query function for accessing an external data source;

[0006] Determining a plurality of second data query functions from the first data query function according to the function dependency relationship; wherein the plurality of second data query functions are independent of each other and are used to access the same external data source;

[0007] Merging the multiple second data query functions to obtain an optimized syntax tree;

[0008] An executable code is generated according to the optimized syntax tree, and the executable code is executed.

[0009] In a second aspect, an embodiment of the present application provides a service processing device, including:

[0010] A first processing module is configured to analyze a syntax tree of a service source code to obtain function dependencies in the syntax tree and a first data query function for accessing an external data source;

[0011] a determination module, configured to determine a plurality of second data query functions from the first data query function according to the function dependency; wherein the plurality of second data query functions are independent of each other and are used to access the same external data source;

[0012] A second processing module, configured to merge the plurality of second data query functions to obtain an optimized syntax tree;

[0013] The third processing module is configured to generate executable code according to the optimized syntax tree and execute the executable code.

[0014] In a third aspect, an embodiment of the present application provides an electronic device comprising: a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the business processing method provided in the first aspect of the embodiment of the present application are implemented.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the business processing method provided in the first aspect of the embodiment of the present application.

[0016] The technical solution provided in the embodiment of the present application analyzes the syntax tree of the business source code to obtain function dependencies in the syntax tree and data query functions for accessing external data sources. By merging multiple data query functions that are independent of each other and used to access the same external data source, the syntax tree of the business source code is optimized, that is, multiple single queries in the business processing process are optimized into batch queries. Through batch queries, multiple query results can be obtained at the same time, reducing the number of queries to the external data source, thereby improving data query efficiency and further improving business processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A flowchart of a business processing method provided in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of a flow chart of a second data query function merging process provided in an embodiment of the present application;

[0019] Figure 3 Another flowchart of the second data query function merging process provided in an embodiment of the present application;

[0020] Figure 4 A schematic diagram of the functional dependency relationship provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of the structure of a service processing device provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The present application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended only to illustrate the present application and are not intended to limit the present application. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions of the present application, not all of the structures.

[0024] In order to make the purpose, technical solutions and advantages of this application more clear, the technical solutions in the embodiments of this application are further described in detail through the following embodiments and in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain this application and are not used to limit this application.

[0025] It should be noted that the execution subject of the following method embodiments may be a business processing device, which may be implemented as part or all of an electronic device through software, hardware, or a combination of software and hardware. Optionally, the electronic device may be a tablet computer, a desktop computer, a smartphone, etc. Of course, the electronic device may also be an independent server or a server cluster, etc. The embodiments of this application do not limit the specific type of electronic device. The following method embodiments are described using the execution subject as an electronic device as an example.

[0026] Figure 1 A flow chart of the business processing method provided in the embodiment of the present application. Figure 1 As shown, the method may include:

[0027] S101: Analyze a syntax tree of a service source code to obtain function dependencies in the syntax tree and a first data query function for accessing an external data source.

[0028] Business source code is used to implement the corresponding business functions. For example, business source code can be code for fault identification, business risk prediction, or other business functions. Typically, business source code involves querying external data sources, and based on these query results and business processing logic, the corresponding business functions are implemented.

[0029] In practical applications, in order to facilitate obtaining information in the business source code, the business source code can be parsed into a syntax tree. Each node in the syntax tree represents a syntax structure, such as a function definition, a variable declaration, and an assignment statement. In this way, by traversing and analyzing each node in the syntax tree of the business source code, the function dependencies in the business source code and the first data query function for accessing the external data source can be quickly found.

[0030] The function dependency here is used to indicate the dependency between the various function functions contained in the syntax tree, which may include the function call chain and the dependency between the function functions within the function call chain. The function functions within the same function call chain have a dependency relationship, and the function functions in different function call chains do not have a dependency relationship. For example, it is assumed that by analyzing the syntax tree, function call chain a and function call chain b are obtained, function call chain a contains function function 1 and function function 2, and the input parameter of function function 2 is the query result of function function 1, that is, function function 2 and function function 1 have a dependency relationship, function call chain b contains function function 3, function function 4 and function function 5, and these three function functions have a dependency relationship, while function functions 1 and 2 in function call chain a and function functions 3, 4 and 5 in function call chain b do not have a dependency relationship.

[0031] In actual applications, the syntax tree may include multiple types of function functions. In this embodiment, only the function for accessing the external data source in the syntax tree is found and used as the first data query function.

[0032] Optionally, the above-mentioned process of obtaining the first data query function in the syntax tree for accessing the external data source can be: traversing and analyzing each node in the syntax tree of the business source code to obtain the functional function in the syntax tree; obtaining the identification information of the functional function; and determining the first data query function for accessing the external data source from the functional function based on the identification information.

[0033] Exemplarily, the identification information may be a function name, a function code, function call interface information, and the like.

[0034] In some embodiments, the identification information of the function found in the syntax tree can be matched with a preset function metadata table. If a match is found, the function can be determined to be the first data query function. The function metadata table includes metadata of the function used to query the external data source.

[0035] In some embodiments, the function functions for querying external data sources are named according to certain prefix rules. For example, the function functions for accessing external data sources are named starting with the characters "$i__". Therefore, after obtaining the identification information of each function function, the function function containing the specified characters in the identification information can be determined as the first data query function. For example, the function function containing the specified characters "$i__" in the identification information is determined as the first data query function.

[0036] S102: Determine a plurality of second data query functions from the first data query function according to the function dependency relationship.

[0037] The multiple second data query functions are independent of each other and are used to access the same external data source.

[0038] After obtaining the above-mentioned function dependency and the first data query functions for accessing the external data source, it is possible to determine which first data query functions have dependencies and which do not, based on the function dependency. For example, first data query functions within the same function call chain have dependencies, while first data query functions not within the same function call chain do not have dependencies. Furthermore, these first data query functions that do not have dependencies and are used to access the same external data source are determined as second data query functions.

[0039] Optionally, when the syntax tree contains nested functions, the above S102 may include: when the first data query function is a nested function, splitting the first data query function into a non-nested third data query function; and determining multiple second data query functions from the third data query function based on function dependencies.

[0040] Specifically, based on the nested relationship between the functional functions in the first data query function, the first data query function is split into non-nested third data query functions. For example, for a nested first data query function a(b(c())), the first data query function can be split into three non-nested third data query functions: c=c(), b=b(c), and a=a(b) according to the nested relationship between the functional functions in the first data query function.

[0041] By splitting the nested first data query function into multiple non-nested third data query functions, it is easier to subsequently locate the second data query function that has no dependency and is used to access the same external data source, thereby improving the accuracy of subsequent analysis and processing.

[0042] S103: Merge multiple second data query functions to obtain an optimized syntax tree.

[0043] After determining multiple second data query functions, the multiple second data query functions are combined into a batch query function, which can be used to implement batch queries of external data sources. In other words, multiple single queries are optimized into batch queries. Through batch queries, multiple query results can be obtained simultaneously, thereby reducing the number of queries to the external data source.

[0044] S104: Generate executable code according to the optimized syntax tree, and execute the executable code.

[0045] Executable code is regenerated based on the optimized syntax tree and executed to implement the corresponding business processing. Compared with traditional methods, this executable code can be considered optimized. It maintains the same business logic as the original unoptimized executable code in traditional methods. It simply optimizes multiple single queries into batch queries, reducing the number of queries to external data sources, thereby improving data query efficiency and, in turn, business processing efficiency.

[0046] The business processing method provided in the embodiment of the present application analyzes the syntax tree of the business source code to obtain function dependencies in the syntax tree and data query functions for accessing external data sources. By merging multiple data query functions that are independent of each other and used to access the same external data source, the syntax tree of the business source code is optimized. That is, multiple single queries in the business processing process are optimized into batch queries. Through batch queries, multiple query results can be obtained at the same time, reducing the number of queries to the external data source, thereby improving data query efficiency and further improving business processing efficiency.

[0047] In one embodiment, optionally, Figure 2 As shown, the above S103 may include:

[0048] S201: Obtain the total number of query items corresponding to multiple second data query functions.

[0049] The total number of query items here refers to the total number of items that multiple second data query functions need to query from the external data source. In some embodiments, the number of query items for each second data query function can be obtained and summed to obtain the total number of query items corresponding to the multiple second data query functions. For example, when the second data query function is a batch function, the number of query items for the second data query function is greater than 1; when the second data query function is a non-batch function, the number of query items for the second data query function is 1.

[0050] S202: Merge multiple second data query functions according to the total number of query items.

[0051] The number of query items included in the merged function does not exceed a preset item number threshold.

[0052] The preset item number threshold can be set based on the access capacity or access performance of the external data source. This embodiment does not limit the specific value of the preset item number threshold. After obtaining the total number of query items, the multiple second data query functions are merged according to the total number of query items, so that the number of query items included in the merged function does not exceed the preset item number threshold.

[0053] In some embodiments, optionally, the above-mentioned process of merging multiple second data query functions based on the total number of query items may include: when the total number of query items exceeds a preset item number threshold, grouping the multiple second data query functions and merging the multiple second data query functions based on the grouping results; when the total number of query items does not exceed the preset item number threshold, directly merging the multiple second data query functions.

[0054] That is, if the total number of query items exceeds a preset item number threshold, the multiple second data query functions can be divided into multiple data query function groups, and the second data query functions within each data query function group can be merged. For example, assuming the preset item number threshold is 50 and the total number of query items corresponding to the multiple second data query functions is 100, the multiple second data query functions can be divided into two data query function groups, and the second data query functions within each of the two data query function groups can be merged, thereby optimizing the multiple second data query functions into two batch query functions.

[0055] When the total number of query items does not exceed the preset item number threshold, multiple second data query functions can be directly merged into one batch query function.

[0056] Optionally, the above-mentioned merging of multiple second data query functions may include: obtaining a batch query interface of the external data source accessed by the second data query function; and merging the multiple second data query functions based on the batch query interface, the input parameters of the multiple second data query functions, and the objects to be returned.

[0057] Specifically, external data sources all support two interfaces, one of which is a single query interface and the other is a batch query interface. By calling these two interfaces, data queries on external data sources can be implemented. The difference is that one is a single query and the other is a batch query. Therefore, it is possible to obtain the batch query interface of the external data source accessed by the second data query function, and extract the input parameters and the objects to be returned of each second data query function, assemble the input parameters of each second data query function into a parameter set, and assemble the objects to be returned of each second data query function into a set of objects to be returned. Using the batch query interface, parameter set, and set of objects to be returned, multiple second data query functions can be merged into corresponding batch query functions.

[0058] Exemplarily, the multiple second data query functions are: the second data query function "$i_most recently registered mobile phone number ($user ID)", the second data query function "$i_number of orders placed by the user in the last 24 hours ($user ID)", and the second data query function "$i_number of orders canceled by the user in the last 24 hours ($user ID)". The input parameter information "$user ID" of these three second data query functions can be assembled to form a parameter set, and the objects to be returned of these three second data query functions "most recently registered mobile phone number", "number of orders placed by the user in the last 24 hours" and "number of orders canceled by the user in the last 24 hours" can be assembled to form a set of objects to be returned. Then, based on the batch query interface of the external data source corresponding to these three second data query functions, the above parameter set and the above set of objects to be returned, the three second data query functions are merged into a batch query function. For example, the merged batch query function can be: BatchI / OFun('Batch query interface of external data source', ['Recently registered mobile phone number', 'Number of orders placed by the user in the last 24 hours', 'Number of orders canceled by the user in the last 24 hours'], [$user ID, $user ID, $user ID]).

[0059] Through the input parameters of multiple second data query functions, the objects to be returned, and the batch query interface supported by the corresponding external data source, the multiple second data query functions are merged into a batch query function. The batch query function can realize batch query of data by calling the batch query interface provided by the external data source, thereby reducing the number of data queries and improving data query efficiency.

[0060] In this embodiment, multiple second data query functions can be merged based on the total number of query items corresponding to the second query functions, avoiding the problem of decreased access performance of external data sources caused by excessive number of query items contained in batch queries, thereby further improving data query efficiency.

[0061] In one embodiment, optionally, Figure 3 As shown, the above S103 may include:

[0062] S301: Determine dependency hierarchy information of multiple second data query functions according to function dependency relationships.

[0063] S302: Merge the second data query functions with the same dependency level information.

[0064] In some business scenarios, a second data query function may itself have dependencies on other data query functions, meaning it may rely on the query results of other data query functions or be an input parameter to other data query functions. Therefore, by analyzing the function dependencies in the syntax tree, you can obtain the dependency hierarchy information of the second data query functions and merge those with the same dependency hierarchy information.

[0065] For example, Figure 4 As shown, assuming that by analyzing the syntax tree, function call chain a and function call chain b are obtained, function call chain a contains data query function 1 and data query function 2, and the input parameter of data query function 2 is the query result of data query function 1, function call chain b contains data query function 3, data query function 4 and data query function 5, the input parameter of data query function 4 is the query result of data query function 3, and the input parameter of data query function 5 is the query result of data query function 4, and function call chain a and function call chain b both access the same external data source. In this way, by analyzing the functional dependency relationship of the syntax tree, it can be obtained that data query functions 1 and 3 belong to the same dependency level, data query functions 2 and 4 belong to the same dependency level, and data query function 5 is another dependency level. In this way, data query functions 1 and 3 can be merged, data query functions 2 and 4 can be merged, and data query function 5 can be merged with the data query function of the same dependency level.

[0066] In this embodiment, based on the function dependency relationship, the dependency hierarchy information of multiple second data query functions is determined, and only the second data query functions with the same dependency hierarchy information are merged, which meets the data query requirements in some business scenarios and improves the flexibility of business processing.

[0067] Figure 5 A structural diagram of a business processing device provided in an embodiment of the present application. Figure 5 As shown, the apparatus may include: a first processing module 501 , a determination module 502 , a second processing module 503 and a third processing module 504 .

[0068] Specifically, the first processing module 501 is used to analyze the syntax tree of the business source code to obtain the function dependency relationship in the syntax tree and the first data query function for accessing the external data source;

[0069] The determining module 502 is configured to determine a plurality of second data query functions from the first data query function according to the functional dependency relationship; wherein the plurality of second data query functions are independent of each other and are used to access the same external data source;

[0070] The second processing module 503 is used to merge multiple second data query functions to obtain an optimized syntax tree;

[0071] The third processing module 504 is configured to generate executable code according to the optimized syntax tree and execute the executable code.

[0072] Based on the above embodiment, optionally, the second processing module 503 is also used to obtain the total number of query items corresponding to multiple second data query functions; merge the multiple second data query functions according to the total number of query items; wherein the number of query items contained in the merged function does not exceed a preset item number threshold.

[0073] Based on the above embodiment, optionally, the second processing module 503 is also used to group multiple second data query functions when the total number of query items exceeds a preset item number threshold, and merge the multiple second data query functions according to the grouping results; when the total number of query items does not exceed the preset item number threshold, directly merge the multiple second data query functions.

[0074] Based on the above embodiment, optionally, the second processing module 503 is further configured to determine dependency hierarchy information of multiple second data query functions according to function dependencies; and merge second data query functions with the same dependency hierarchy information.

[0075] Based on the above embodiment, optionally, the second processing module 503 is also used to obtain a batch query interface of the external data source accessed by the second data query function; based on the batch query interface, the input parameters of multiple second data query functions and the objects to be returned, the multiple second data query functions are merged.

[0076] Based on the above embodiment, optionally, the first processing module 501 is also used to traverse and analyze each node in the syntax tree of the business source code, obtain function dependencies in the syntax tree and functional functions in the syntax tree; obtain identification information of the functional function; and determine the first data query function for accessing the external data source from the functional function based on the identification information.

[0077] Based on the above embodiment, optionally, the determination module 502 is also used to split the first data query function into a non-nested third data query function when the first data query function is a nested function; and determine multiple second data query functions from the third data query function according to the function dependency relationship.

[0078] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 6As shown, the device includes a processor 610, a memory 620, an input device 630, and an output device 640; the number of the processor 610 in the device can be one or more. Figure 6 A processor 610 is taken as an example; the processor 610, memory 620, input device 630 and output device 640 in the device can be connected via a bus or other means. Figure 6 The bus connection is taken as an example.

[0079] The memory 620, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the business processing method in the embodiments of the present application (for example, the first processing module 501, the determination module 502, the second processing module 503, and the third processing module 504 in the business processing device). The processor 610 executes the various functional applications and data processing of the above-mentioned device by running the software programs, instructions, and modules stored in the memory 620, thereby implementing the above-mentioned business processing method.

[0080] The memory 620 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created during business processing, etc. In addition, the memory 620 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 620 may further include a memory remotely located relative to the processor 610, and these remote memories may be connected to the device / terminal / electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0081] The input device 630 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the above-mentioned device. The output device 640 may include a display device such as a display screen.

[0082] In one embodiment, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, it is used to perform a business processing method, the method comprising:

[0083] Analyze the syntax tree of the business source code to obtain function dependencies in the syntax tree and a first data query function for accessing an external data source;

[0084] Determining a plurality of second data query functions from the first data query function according to the functional dependency relationship; wherein the plurality of second data query functions are independent of each other and are used to access the same external data source;

[0085] Merging multiple second data query functions to obtain an optimized syntax tree;

[0086] Generate executable code based on the optimized syntax tree and execute the executable code.

[0087] The service processing apparatus, electronic device, and storage medium provided in the above embodiments can execute the service processing method provided in any of the above embodiments, and have the corresponding functional modules and beneficial effects of executing the method. For technical details not fully described in the above embodiments, please refer to the service processing method provided in any of the above embodiments.

[0088] Through the above description of the implementation methods, those skilled in the art can clearly understand that the present application can be implemented with the help of software and necessary general-purpose hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a computer's floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0089] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.

[0090] Note that the above are only preferred embodiments of the present application and the technical principles employed. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present application. The scope of the present application is determined by the scope of the appended claims.

Claims

1. A business processing method, characterized in that: include: Analyze a syntax tree of the service source code to obtain function dependencies in the syntax tree and a first data query function for accessing an external data source; Determining a plurality of second data query functions from the first data query function according to the function dependency relationship; wherein the plurality of second data query functions are independent of each other and are used to access the same external data source; Merging the multiple second data query functions to obtain an optimized syntax tree; An executable code is generated according to the optimized syntax tree, and the executable code is executed.

2. The method according to claim 1, characterized in that The merging of the plurality of second data query functions to obtain an optimized syntax tree includes: Obtaining a total number of query items corresponding to the multiple second data query functions; The plurality of second data query functions are merged according to the total number of query items; wherein the number of query items included in the merged function does not exceed a preset item number threshold.

3. The method according to claim 2, characterized in that The merging of the plurality of second data query functions according to the total number of query items includes: When the total number of query items exceeds the preset item number threshold, grouping the multiple second data query functions, and merging the multiple second data query functions according to the grouping result; When the total number of query items does not exceed the preset item number threshold, the multiple second data query functions are directly merged.

4. The method according to claim 1, wherein The merging of the plurality of second data query functions comprises: Determining dependency hierarchy information of the plurality of second data query functions according to the function dependency relationship; The second data query functions having the same dependency level information are merged.

5. The method according to any one of claims 1 to 4, characterized in that The merging of the plurality of second data query functions comprises: Obtaining a batch query interface of the external data source accessed by the second data query function; The multiple second data query functions are merged based on the batch query interface, the input parameters of the multiple second data query functions, and the objects to be returned.

6. The method according to any one of claims 1 to 4, characterized in that The step of analyzing the syntax tree of the service source code to obtain the function dependency relationship in the syntax tree and the first data query function for accessing the external data source includes: Traversing and analyzing each node in the syntax tree of the business source code to obtain function dependencies and functional functions in the syntax tree; Obtaining identification information of the functional function; According to the identification information, a first data query function for accessing an external data source is determined from the functional functions.

7. The method according to any one of claims 1 to 4, characterized in that The determining a plurality of second data query functions from the first data query function according to the function dependency relationship includes: When the first data query function is a nested function, splitting the first data query function into a non-nested third data query function; A plurality of second data query functions are determined from the third data query function according to the function dependency relationship.

8. A business processing device, characterized in that: include: A first processing module is configured to analyze a syntax tree of a service source code to obtain function dependencies in the syntax tree and a first data query function for accessing an external data source; a determination module, configured to determine a plurality of second data query functions from the first data query function according to the function dependency; wherein the plurality of second data query functions are independent of each other and are used to access the same external data source; A second processing module, configured to merge the plurality of second data query functions to obtain an optimized syntax tree; The third processing module is configured to generate executable code according to the optimized syntax tree and execute the executable code.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.