Application update-based processing methods, devices, and testing terminals
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2026-08-14
AI Technical Summary
[0005]本申请提供一种基于应用更新的处理方法、装置及测试终端,用以解决在应用更新期间业务交易中断的技术问题
[0029]本申请提供的一种基于应用更新的处理方法、装置及测试终端,测试终端接收携带有待更新应用标识的更新指令。响应于更新指令,测试终端对待更新应用标识对应的待更新应用进行预编译,获取与待更新应用标识对应的更新数据库执行计划,并将更新数据库执行计划发送至服务器,以使服务器将接收到的更新数据库执行计划存储至服务器的数据库中,并在响应于用户终端发送的业务请求时,根据数据库中的更新数据库执行计划和除更新数据库执行计划之外的其他数据库执行计划,进行相应地业务处理;其中,更新数据库执行计划包括应用逻辑信息和数据库操作指令集,应用逻辑信息表征待更新应用更新后的业务处理逻辑,数据库操作指令集表征与应用逻辑信息对应的多个指令。测试终端根据更新指令,对待更新应用标标识对应的待更新应用进行更新处理,获取目标应用。本方案中,测试终端接收携带有待更新应用标识的更新指令,响应于更新指令,对待更新应用进行预编译,得到更新数据库执行计划,并将更新数据库执行计划发送至服务器。服务器接收到更新数据库执行计划时,将更新数据库执行计划存储至服务器对应的数据库中。然后测试终端根据更新指令对待更新应用进行更新处理,得到目标应用。由于更新数据库执行计划是根据待更新应用的更新指令生成并存储到数据库中的,根据更新指令生成的目标应用与服务器中的更新数据库执行计划之间具有对应关系,且待更新应用与其他数据库执行计划之间具有对应关系,所以,在更新过程中,若服务器接收到用户终端发起的交易请求,其中用户终端是目标应用,服务器可以根据目标应用与更新数据库执行计划之间的对应关系,访问服务器对应的数据库以进行相应地业务处理;或者,若用户终端是待更新应用,服务器可以根据待更新应用与其他数据库执行计划之间的对应关系,访问服务器对应的数据库以进行相应地业务处理。因此,保证了更新过程中的业务交易的连续性,解决了在应用更新期间业务交易中断的技术问题。
Smart Images

Figure CN115658111B_ABST
Abstract
Description
Technical Field
[0001] This application relates to computer technology, and more particularly to a processing method, apparatus, and test terminal based on application updates. Background Technology
[0002] Currently, various business transactions can be conducted through an application (APP). Since business transactions via an APP require access to the database corresponding to the APP, both the APP and its corresponding database need to be updated according to changing transaction requirements.
[0003] In existing technologies, the app is usually updated first, and then the database corresponding to the app is updated.
[0004] However, in the existing technology, because the APP is updated first and then the database corresponding to the APP is updated, business transactions cannot be carried out until the database corresponding to the APP is updated, resulting in business transaction interruption. Summary of the Invention
[0005] This application provides a processing method, apparatus, and test terminal based on application updates to solve the technical problem of business transaction interruption during application updates.
[0006] Firstly, this application provides a processing method based on application updates, comprising:
[0007] The test terminal receives an update command carrying the identifier of the application to be updated;
[0008] In response to the update instruction, the test terminal pre-compiles the application to be updated corresponding to the application identifier to be updated, obtains the update database execution plan corresponding to the application identifier to be updated, and sends the update database execution plan to the server, so that the server stores the received update database execution plan in the server's database, and performs corresponding business processing according to the update database execution plan in the database and other database execution plans besides the update database execution plan when responding to a business request sent by the user terminal; wherein, the update database execution plan includes application logic information and a database operation instruction set, the application logic information represents the business processing logic of the application to be updated after the update, and the database operation instruction set represents multiple instructions corresponding to the application logic information;
[0009] The test terminal updates the application corresponding to the application identifier to be updated according to the update instruction, and obtains the target application.
[0010] Further, in response to the update instruction, the test terminal pre-compiles the application to be updated corresponding to the application identifier to be updated, and obtains the update database execution plan corresponding to the application identifier to be updated, including:
[0011] In response to the update instruction, based on the current time, the test terminal pre-compiles the application to be updated corresponding to the application to be updated identifier according to the update instruction, and obtains the update database execution plan corresponding to the application to be updated identifier; wherein, the version name of the update database execution plan includes the timestamp of the current time.
[0012] Furthermore, the method also includes:
[0013] If it is determined that the target application does not meet the preset update requirements, a release instruction is sent to the server, and the next update instruction for the application to be updated is received, so that the server releases the update database execution plan in the database corresponding to the server according to the received release instruction.
[0014] Furthermore, the method also includes:
[0015] If it is determined that the business request in the application to be updated has been completed, then the application to be updated corresponding to the application identifier is deleted.
[0016] Secondly, this application provides a processing apparatus based on application updates, comprising:
[0017] The receiving unit is used to test the terminal's reception of an update command carrying an application identifier to be updated;
[0018] A pre-compilation unit, in response to the update instruction, performs pre-compilation on the application to be updated corresponding to the application identifier, obtains the update database execution plan corresponding to the application identifier, and sends the update database execution plan to the server. The server then stores the received update database execution plan in its database. Upon responding to a service request from a user terminal, the unit performs corresponding service processing based on the update database execution plan in the database and other database execution plans besides the update database execution plan. The update database execution plan includes application logic information and a database operation instruction set. The application logic information represents the updated service processing logic of the application, and the database operation instruction set represents multiple instructions corresponding to the application logic information.
[0019] The update unit is used by the test terminal to update the application to be updated corresponding to the application to be updated identifier according to the update instruction, and obtain the target application.
[0020] Furthermore, the pre-compilation unit is specifically used for:
[0021] In response to the update instruction, based on the current time, the test terminal pre-compiles the application to be updated corresponding to the application to be updated identifier according to the update instruction, and obtains the update database execution plan corresponding to the application to be updated identifier; wherein, the version name of the update database execution plan includes the timestamp of the current time.
[0022] Furthermore, the device also includes:
[0023] The sending unit is configured to send a release instruction to the server if it is determined that the target application does not meet the preset update requirements, and to receive the next update instruction for the application to be updated, so that the server releases the update database execution plan in the database corresponding to the server according to the received release instruction.
[0024] Furthermore, the device also includes:
[0025] The deletion unit is used to delete the application to be updated corresponding to the application to be updated identifier if it is determined that the business request in the application to be updated has been completed.
[0026] Thirdly, this application provides a test terminal, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the method described in the first aspect.
[0027] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described in the first aspect.
[0028] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method described in the first aspect.
[0029] This application provides a processing method, apparatus, and test terminal based on application updates. The test terminal receives an update instruction carrying an identifier of an application to be updated. In response to the update instruction, the test terminal pre-compiles the application to be updated corresponding to the application identifier, obtains an update database execution plan corresponding to the application identifier, and sends the update database execution plan to a server. The server then stores the received update database execution plan in its database. Upon responding to a service request from a user terminal, the server performs corresponding business processing based on the update database execution plan and other database execution plans besides the update database execution plan. The update database execution plan includes application logic information and a database operation instruction set. The application logic information represents the business processing logic of the updated application, and the database operation instruction set represents multiple instructions corresponding to the application logic information. The test terminal updates the application to be updated according to the update instruction, obtaining the target application. In this solution, the test terminal receives an update instruction carrying an identifier of an application to be updated, pre-compiles the application to be updated in response to the update instruction to obtain an update database execution plan, and sends the update database execution plan to a server. When the server receives the update database execution plan, it stores the plan in the corresponding database. Then, the test terminal updates the application to be updated according to the update instructions, resulting in the target application. Since the update database execution plan is generated and stored in the database based on the update instructions of the application to be updated, there is a correspondence between the target application generated from the update instructions and the update database execution plan in the server, and there is also a correspondence between the application to be updated and other database execution plans. Therefore, during the update process, if the server receives a transaction request from a user terminal, where the user terminal is the target application, the server can access the corresponding database to perform the appropriate business processing based on the correspondence between the target application and the update database execution plan; or, if the user terminal is the application to be updated, the server can access the corresponding database to perform the appropriate business processing based on the correspondence between the application to be updated and other database execution plans. This ensures the continuity of business transactions during the update process and solves the technical problem of business transaction interruption during application updates. Attached Figure Description
[0030] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0031] Figure 1 A flowchart illustrating an application update-based processing method provided in this application embodiment;
[0032] Figure 2A flowchart illustrating another application update-based processing method provided in this application embodiment;
[0033] Figure 3 A flowchart illustrating another application update-based processing method provided in this application embodiment;
[0034] Figure 4 A flowchart illustrating another application update-based processing method provided in this application embodiment;
[0035] Figure 5 A flowchart illustrating another application update-based processing method provided in this application embodiment;
[0036] Figure 6 A schematic diagram of the structure of a processing device based on application updates provided in an embodiment of this application;
[0037] Figure 7 A schematic diagram of another application update-based processing device provided in an embodiment of this application;
[0038] Figure 8 This is a schematic diagram of the structure of a test terminal provided in an embodiment of this application.
[0039] The accompanying drawings have illustrated specific embodiments of this disclosure, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this disclosure to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0040] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure.
[0041] Currently, various business transactions can be conducted through applications (APPs). Since these transactions require access to the corresponding database, both the APP and its database need to be updated according to changing transaction requirements. However, existing update technologies have several drawbacks.
[0042] In one example, the app is typically updated first, followed by the database corresponding to the app. However, in existing technology, because the app is updated first, and then the database corresponding to the app is updated, business transactions cannot be carried out until the database corresponding to the app is updated, resulting in business transaction interruption.
[0043] In one example, the app's database access code embeds SQL statements for reading and writing to the database. During code preprocessing, the source code is scanned, and the database access structures that should be included are copied into the app's source code. A preliminary syntax check is performed on the embedded SQL statements. Then, the embedded SQL statements are replaced with normal C language expressions to ensure that the logic code written in C language can compile successfully. Simultaneously, the embedded SQL statements are extracted, and a database execution plan related to the app is generated. The database execution plan includes application logic information and a set of database operation instructions (i.e., packages). The app name executing the business transaction and the database execution plan name are consistent, so that when the app accesses the corresponding database, it can complete the database access through the paired database execution plan name. Regarding the database execution plan, in order for the execution plan to be executed on the app, the compiled results need to be stored in the database corresponding to the app. Specifically, this is done through the BIND operation of the database corresponding to the app, thereby generating the final execution code package. Therefore, when an app accesses its corresponding database, it can also find the corresponding package stored in the database through the app name and the compiled allocated token, completing the app's database read and write access. It's important to note that each app pre-compilation generates a different token. Therefore, if our app is updated but before the database updates with a new package, the new app's business logic will fail, causing transaction interruptions.
[0044] This application provides a processing method, apparatus, and testing terminal based on application updates, which aims to solve the above-mentioned technical problems in the prior art.
[0045] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0046] Figure 1 This application provides a flowchart illustrating an application update-based processing method, applied to a test terminal, such as... Figure 1 As shown, the method includes:
[0047] Step 101: The test terminal receives an update command carrying the identifier of the application to be updated.
[0048] For example, the execution entity in this embodiment can be a test terminal. First, the test terminal deploys middleware, namely a Customer Information Control System (CICS), on which the application to be updated runs. The test terminal can interact with the server, and the server can also interact with the user terminal. The server includes a corresponding database, which can be a DB2 database, etc. The test terminal receives an update instruction carrying an identifier of the application to be updated; each identifier corresponds to a unique application to be updated.
[0049] Step 102: In response to the update command, the test terminal pre-compiles the application to be updated corresponding to the application identifier to be updated, obtains the update database execution plan corresponding to the application identifier to be updated, and sends the update database execution plan to the server, so that the server stores the received update database execution plan in the server's database. When responding to the business request sent by the user terminal, the server performs corresponding business processing according to the update database execution plan in the database and other database execution plans besides the update database execution plan. The update database execution plan includes application logic information and a database operation instruction set. The application logic information represents the business processing logic after the application to be updated is updated, and the database operation instruction set represents multiple instructions corresponding to the application logic information.
[0050] For example, in response to an update command, the test terminal pre-compiles the application to be updated corresponding to the application identifier to be updated, obtains the update database execution plan corresponding to the application identifier to be updated, and sends the update database execution plan to the server. When the server receives the update database execution plan, it stores the received update database execution plan in the server's database. If the server receives a business request sent by a user terminal, in response to the business request, the server performs corresponding business processing according to the update database execution plan in the database and other database execution plans besides the update database execution plan. The update database execution plan includes application logic information and a database operation instruction set (i.e., a Package). The application logic information represents the business processing logic after the update of the application to be updated, and the database operation instruction set represents multiple instructions corresponding to the application logic information.
[0051] For example, the test terminal includes a pre-compiler switch: VERSION (AUTO). In response to update commands, the application to be updated is compiled and stored in the library according to this switch. This ensures that the generated update database execution plan includes a new version with the current timestamp as the version number, accurate to the millisecond level, guaranteeing that the versions in the update database execution plan are unique. The update database execution plan is then sent to the server. Upon receiving the update database execution plan, the server uses the BIND command on its database to save the newly generated update database execution plan to its database, generating the new version of the application logic information and database operation command set.
[0052] Step 103: The test terminal updates the application to be updated corresponding to the application identifier to be updated according to the update instruction, and obtains the target application.
[0053] For example, the test terminal updates the application to be updated corresponding to the application identifier to be updated according to the update instruction, and obtains the target application. Since the update database execution plan is generated and stored in the database according to the update instruction of the application to be updated, there is a correspondence between the target application generated according to the update instruction and the update database execution plan in the server. In addition, the database also stores other historical database execution plans, and there is a correspondence between the application to be updated and other historical database execution plans. Therefore, during the update process, before the update process, and after the update process, if the server receives a business request sent by the user terminal, where the business request is a request initiated by the target application, the server can access the corresponding database of the server to perform the corresponding business processing according to the correspondence of the target application. Alternatively, if the server receives a business request sent by the user terminal, where the business request is a request initiated by the application to be updated, the server can access the corresponding database of the server to perform the corresponding business processing according to the correspondence of the application to be updated.
[0054] For example, Figure 2 A flowchart illustrating another application update-based processing method provided in this application embodiment is shown below. Figure 2As shown, the DB2 database includes the old version of Package A before the update. The load balancer sends business requests initiated by the old application A (Program A) to the server containing the DB2 database. Because there is a correspondence between the old version of Package A in the DB2 database and the old application A, the server can access the DB2 database through the old version of Package A. However, if a business request initiated by the updated target application A' is sent to the server, because there is no correspondence between the old version of Package A in the DB2 database and the updated target application A', and the token used by the updated target application A' is different from the old version of Package A in the DB2 database, the server cannot access the DB2 database through the old version of Package A.
[0055] Figure 3 A flowchart illustrating another application update-based processing method provided in this application embodiment is shown below. Figure 3 As shown, the DB2 database includes the old version Package A.version 1 (before the update) and the new version Package A.version 2 (after the update). The load balancer sends business requests initiated by application A.version 1 (i.e., Program A.version 1) to the server. Because there is a correspondence between the old version Package A.version 1 in the DB2 database and the application A.version 1 before the update, the server can access the DB2 database through the old version Package A.version 1. Now, if a business request initiated by the updated target application A.version 2 is sent to the server, because there is a correspondence between the new version Package A.version 2 in the DB2 database and the updated target application A.version 2, the server can access the DB2 database through the new version Package A.version 2.
[0056] Therefore, during the pre-compilation phase, the version number of the updated database execution plan is added. Simultaneously, the new updated database execution plan is saved to the database via BIND operations, introducing multiple versions of the package into the database—that is, the old and new packages coexist. Then, the application is updated, ensuring that both the old and new applications have their corresponding packages in the database. This allows both applications to access the database during the application update process. While application A is deployed across multiple CICS systems, transactions can continue to run normally, guaranteeing business continuity during the application update operation.
[0057] In this embodiment, the test terminal receives an update instruction carrying an identifier of the application to be updated. In response to the update instruction, the test terminal pre-compiles the application to be updated corresponding to the identifier, obtains an update database execution plan corresponding to the identifier, and sends the update database execution plan to the server. The server then stores the received update database execution plan in its database and, in response to a service request from a user terminal, performs corresponding service processing based on the update database execution plan and other database execution plans in the database. The update database execution plan includes application logic information and a database operation instruction set. The application logic information represents the updated service processing logic of the application, and the database operation instruction set represents multiple instructions corresponding to the application logic information. The test terminal updates the application to be updated according to the update instruction, obtaining the target application. In this scheme, the test terminal receives an update instruction carrying an identifier of the application to be updated, pre-compiles the application to be updated to obtain an update database execution plan, and sends the update database execution plan to the server. When the server receives the update database execution plan, it stores it in its corresponding database. Then, the test terminal updates the application to be updated according to the update instructions, obtaining the target application. Since the update database execution plan is generated and stored in the database based on the update instructions of the application to be updated, there is a correspondence between the target application generated according to the update instructions and the update database execution plan in the server, and there is also a correspondence between the application to be updated and other database execution plans. Therefore, during the update process, if the server receives a transaction request initiated by a user terminal, where the user terminal is the target application, the server can access the corresponding database on the server to perform the corresponding business processing based on the correspondence between the target application and the update database execution plan; or, if the user terminal is the application to be updated, the server can access the corresponding database on the server to perform the corresponding business processing based on the correspondence between the application to be updated and other database execution plans. Therefore, the continuity of business transactions during the update process is guaranteed, solving the technical problem of business transaction interruption during application updates.
[0058] Figure 4 This is a flowchart illustrating another application update-based processing method provided in an embodiment of this application, applied to a test terminal, such as... Figure 4 As shown, the method includes:
[0059] Step 201: The test terminal receives an update command carrying the identifier of the application to be updated.
[0060] For example, this step can be referred to Figure 1 Step 101 in the text will not be repeated here.
[0061] Step 202: In response to the update command, based on the current time, the test terminal pre-compiles the application to be updated corresponding to the application identifier to be updated according to the update command, and obtains the update database execution plan corresponding to the application identifier to be updated; wherein, the version name of the update database execution plan includes the timestamp of the current time, and sends the update database execution plan to the server, so that the server stores the received update database execution plan in the server's database, and performs corresponding business processing according to the update database execution plan in the database and other database execution plans besides the update database execution plan when responding to the business request sent by the user terminal; wherein, the update database execution plan includes application logic information and database operation instruction set, the application logic information represents the business processing logic after the update of the application to be updated, and the database operation instruction set represents multiple instructions corresponding to the application logic information.
[0062] For example, this step can be referred to Figure 1 Step 102 in the text will not be repeated here.
[0063] Step 203: The test terminal updates the application to be updated corresponding to the application identifier to be updated according to the update instruction, and obtains the target application.
[0064] For example, this step can be referred to Figure 1 Step 103 in the text will not be repeated here.
[0065] Step 204: If it is determined that the target application does not meet the preset update requirements, a release instruction is sent to the server, and the next update instruction for the application to be updated is received, so that the server releases the update database execution plan in the corresponding database according to the received release instruction.
[0066] For example, if it is determined that the target application does not meet the preset update requirements, the test terminal sends a release command to the server and repeats step 201. When the server receives the release command, it releases the update database execution plan in the corresponding database according to the received release command.
[0067] Step 205: If it is determined that the business request in the application to be updated has been completed, then delete the application to be updated corresponding to the application identifier.
[0068] For example, after the update is completed, the server stores the database operation instruction set corresponding to the target application (i.e., the new package) and the database operation instruction set corresponding to the application to be updated (i.e., the old package). At this time, both the target application and the application to be updated can perform business transactions. Specifically, if the server receives a business request sent by a user terminal, where the business request is initiated by the application to be updated, the server performs the business transaction according to the old package in the database; if the server receives a business request sent by a user terminal, where the business request is initiated by the target application, the server performs the business transaction according to the new package in the database. If it is determined that the business request in the application to be updated has been completed, the test terminal can replace the application to be updated with the target application in CICS and delete the application to be updated. In the CICS where the replacement has been completed, the target application still uses the new package in the database to perform business transactions.
[0069] In this embodiment, the test terminal receives an update instruction carrying an identifier of an application to be updated. In response to the update instruction, based on the current time, the test terminal pre-compiles the application to be updated corresponding to the identifier of the application to be updated, and obtains an update database execution plan corresponding to the identifier of the application to be updated. The version name of the update database execution plan includes the timestamp of the current time. The update database execution plan is then sent to the server, so that the server stores the received update database execution plan in its database. When responding to a service request sent by a user terminal, the server performs corresponding business processing based on the update database execution plan in the database and other database execution plans besides the update database execution plan. The update database execution plan includes application logic information and a database operation instruction set. The application logic information represents the business processing logic of the application to be updated after the update, and the database operation instruction set represents multiple instructions corresponding to the application logic information. The test terminal updates the application to be updated corresponding to the identifier of the application to be updated according to the update instruction, and obtains the target application. If it is determined that the target application does not meet the preset update requirements, a release instruction is sent to the server, and the next update instruction for the application to be updated is received, so that the server releases the update database execution plan in its database according to the received release instruction. If it is determined that the business request in the application to be updated has been completed, the application to be updated corresponding to the application to be updated identifier is deleted. Since the update database execution plan is generated and stored in the database based on the update instructions of the application to be updated, there is a correspondence between the target application generated according to the update instructions and the update database execution plan in the server, and there is also a correspondence between the application to be updated and other database execution plans. Therefore, during the update process, if the server receives a transaction request initiated by a user terminal, where the user terminal is the target application, the server can access the corresponding database on the server to perform the corresponding business processing based on the correspondence between the target application and the update database execution plan; or, if the user terminal is the application to be updated, the server can access the corresponding database on the server to perform the corresponding business processing based on the correspondence between the application to be updated and other database execution plans. Therefore, the continuity of business transactions during the update process is guaranteed, and the technical problem of business transaction interruption during application updates is solved.
[0070] For example, Figure 5 A flowchart illustrating another application update-based processing method provided in this application embodiment is shown below. Figure 5 As shown, the application update process includes:
[0071] 1. A new switch, VERSION(AUTO), has been added to the application pre-compiler to compile the application into the database. This ensures that when generating a new database update execution plan, it includes a version number with a timestamp accurate to the millisecond, guaranteeing that the execution plan will not have duplicate versions.
[0072] 2. In the DB2 database, use the DB2 BIND command to save the newly generated update database execution plan to the DB2 database, creating a new version of the Package. Then, update the application to be updated in the test terminal to obtain the target application.
[0073] 3. Replace (NEW COPY) the new application in CICS. In CICS that has not yet been NEW COPYed, the old application continues to use the old package in the DB2 database. For CICS that has already been NEW COPYed, the new application continues to use the new package in the DB2 database. That is, once there are no more business transactions in the old application, the old application is replaced with the new application, and the old version is released.
[0074] 4. Once the application update is complete, proceed to step 6.
[0075] 5. If an application update needs to be rolled back, simply select "NEW COPY" in CICS to replace the old version with the new one. Proceed to step 9.
[0076] 6. This step begins the removal of the legacy application. For legacy BIND packages using the Release (Deallocate) parameter, you first need to change the DB2 database's protected thread to a pool thread in CICS so that the legacy package is released when the business request ends.
[0077] 7. Release the old package through the DB2 database's FREE Package version.
[0078] 8. Application update completed normally. Process exited.
[0079] 9. For application update rollback, release the new package through the DB2 database's FREE Package version.
[0080] Therefore, this application allows for application updates at any time without interrupting business transactions. Furthermore, application rollback is simpler and easier to manage than existing methods, facilitating risk control.
[0081] Figure 6 A schematic diagram of the structure of a processing device based on application updates provided in this application embodiment is shown below. Figure 6 As shown, the device includes:
[0082] The receiving unit 31 is used to test the terminal to receive an update command carrying an application identifier to be updated.
[0083] The pre-compilation unit 32 is used to pre-compile the application to be updated corresponding to the application identifier to be updated in response to an update command. It obtains the update database execution plan corresponding to the application identifier to be updated and sends the update database execution plan to the server so that the server stores the received update database execution plan in the server's database. When responding to a business request sent by the user terminal, it performs corresponding business processing according to the update database execution plan in the database and other database execution plans besides the update database execution plan. The update database execution plan includes application logic information and a database operation instruction set. The application logic information represents the business processing logic after the application to be updated is updated, and the database operation instruction set represents multiple instructions corresponding to the application logic information.
[0084] The update unit 33 is used to test the terminal to update the application to be updated corresponding to the application to be updated identifier according to the update instruction, and obtain the target application.
[0085] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.
[0086] Figure 7 This is a schematic diagram of another application update-based processing device provided in an embodiment of this application. Figure 6 Based on the illustrated embodiments, as Figure 7 As shown, pre-compilation unit 32 is specifically used for:
[0087] In response to the update command, based on the current time, the test terminal pre-compiles the application to be updated corresponding to the application identifier to be updated according to the update command, and obtains the update database execution plan corresponding to the application identifier to be updated; wherein, the version name of the update database execution plan includes the timestamp of the current time.
[0088] In one example, the device also includes:
[0089] The sending unit 41 is used to send a release instruction to the server and receive the next update instruction for the application to be updated if it is determined that the target application does not meet the preset update requirements, so that the server releases the update database execution plan in the database corresponding to the server according to the received release instruction.
[0090] In one example, the device also includes:
[0091] The deletion unit 42 is used to delete the application to be updated corresponding to the application to be updated identifier if it is determined that the business request in the application to be updated has been completed.
[0092] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.
[0093] Figure 8 This is a schematic diagram of the structure of a test terminal provided in an embodiment of this application, as shown below. Figure 8 As shown, the test terminal includes: memory 51 and processor 52.
[0094] The memory 51 stores a computer program that can run on the processor 52.
[0095] Processor 52 is configured to perform the methods provided in the embodiments described above.
[0096] The test terminal also includes a receiver 53 and a transmitter 54. The receiver 53 is used to receive instructions and data sent by external devices, and the transmitter 54 is used to send instructions and data to external devices.
[0097] This application also provides a non-transitory computer-readable storage medium, which, when the instructions in the storage medium are executed by the processor of a test terminal, enables the test terminal to perform the methods provided in the above embodiments.
[0098] This application also provides a computer program product, which includes a computer program stored in a readable storage medium. At least one processor of the test terminal can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the test terminal to perform the solution provided in any of the above embodiments.
[0099] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0100] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A processing method based on application updates, characterized in that, include: The test terminal receives an update command carrying the identifier of the application to be updated. The test terminal includes a pre-compiler add switch. In response to the update instruction, the test terminal pre-compiles the application to be updated corresponding to the application identifier according to the pre-compiler's newly added switch, and obtains the update database execution plan corresponding to the application identifier; wherein, the update database execution plan includes application logic information and a database operation instruction set, the application logic information represents the updated business processing logic of the application to be updated, and the database operation instruction set represents multiple instructions corresponding to the application logic information; the version name of the update database execution plan includes the timestamp of the current moment; The test terminal sends the updated database execution plan to the server, so that the server stores the received updated database execution plan in the server's database; When responding to a service request sent by a user terminal, the test terminal performs corresponding service processing based on the database update execution plan and other database execution plans besides the database update execution plan. The test terminal updates the application corresponding to the application identifier to be updated according to the update instruction, and obtains the target application.
2. The method according to claim 1, characterized in that, The method further includes: If it is determined that the target application does not meet the preset update requirements, a release instruction is sent to the server, and the next update instruction for the application to be updated is received, so that the server releases the update database execution plan in the database corresponding to the server according to the received release instruction.
3. The method according to claim 1 or 2, characterized in that, The method further includes: If it is determined that the business request in the application to be updated has been completed, then the application to be updated corresponding to the application identifier is deleted.
4. A processing apparatus based on application updates, characterized in that, include: The receiving unit is used for the test terminal to receive an update instruction carrying an application identifier to be updated. The test terminal includes a pre-compiler add switch. A pre-compilation unit, in response to the update instruction, performs pre-compilation on the application to be updated corresponding to the application identifier according to the pre-compiler's added switch, obtains the update database execution plan corresponding to the application identifier, and sends the update database execution plan to the server, so that the server stores the received update database execution plan in the server's database, and performs corresponding business processing according to the update database execution plan in the database and other database execution plans besides the update database execution plan when responding to a business request sent by the user terminal; wherein, the update database execution plan includes application logic information and a database operation instruction set, the application logic information represents the business processing logic of the application to be updated after the update, the database operation instruction set represents multiple instructions corresponding to the application logic information, and the version name of the update database execution plan includes the current time timestamp; The update unit is used by the test terminal to update the application to be updated corresponding to the application to be updated identifier according to the update instruction, and to obtain the target application.
5. The apparatus according to claim 4, characterized in that, The device further includes: The sending unit is configured to send a release instruction to the server if it is determined that the target application does not meet the preset update requirements, and to receive the next update instruction for the application to be updated, so that the server releases the update database execution plan in the database corresponding to the server according to the received release instruction.
6. A testing terminal, characterized in that, The method includes a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the method of any one of claims 1-3.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-3.
8. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-3.