CN114610350A - Method and device for updating query system, electronic equipment and storage medium - Google Patents
Method and device for updating query system, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114610350A CN114610350A CN202210226692.6A CN202210226692A CN114610350A CN 114610350 A CN114610350 A CN 114610350A CN 202210226692 A CN202210226692 A CN 202210226692A CN 114610350 A CN114610350 A CN 114610350A
- Authority
- CN
- China
- Prior art keywords
- result
- query
- difference
- query system
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000015654 memory Effects 0.000 claims description 17
- 230000006870 function Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 11
- 238000011161 development Methods 0.000 abstract description 8
- 238000012795 verification Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
- G06F16/1815—Journaling file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开了一种查询系统的更新方法、装置、电子设备及存储介质,其中更新方法包括:将预设查询信息输入至第一系统,输出第一结果;将预设查询信息输入至第二系统,输出第二结果;若第一结果和第二结果相同,则将第二系统作为当前查询系统。本发明通过比较两个系统的查询结果,自动验证更新第一查询系统后的第二查询系统是否迭代升级成功;若迭代升级失败,统计两个系统的差异,对工作人员的调试第二查询系统提供依据;若迭代升级成功,逐渐扩大使用第二查询系统的目标用户,实现查询系统的灰度更新。本发明为查询系统的迭代升级提供可复用可扩展的更新方案,节省查询系统迭代升级的开发时间,提高开发效率。
The invention discloses an update method, device, electronic device and storage medium for a query system, wherein the update method comprises: inputting preset query information into a first system, and outputting a first result; inputting preset query information into a second system system, and output the second result; if the first result and the second result are the same, the second system is used as the current query system. The present invention automatically verifies whether the iterative upgrade of the second query system after updating the first query system is successful by comparing the query results of the two systems; if the iterative upgrade fails, the difference between the two systems is counted, and the second query system is debugged for the staff. Provide a basis; if the iterative upgrade is successful, gradually expand the target users who use the second query system to achieve grayscale update of the query system. The invention provides a reusable and scalable update scheme for the iterative upgrade of the query system, saves the development time of the iterative upgrade of the query system, and improves the development efficiency.
Description
技术领域technical field
本发明涉及电子信息技术领域,尤其涉及一种查询系统的更新方法、装置、电子设备及存储介质。The present invention relates to the technical field of electronic information, and in particular, to an update method, device, electronic device and storage medium of a query system.
背景技术Background technique
现有的查询系统维护过程中,经常需要进行迭代升级,例如更换输入或输出数据的接口、更换查询的逻辑及更换编码语言等,为了保证同一功能的查询系统进行迭代后,输出结果的同一性及正确性,需要对迭代前和迭代后的输出结果进行对比验证;同时,为了减少迭代引入问题从而造成损失,通常会按照一定规则控制网络数据,将网络数据从老版本系统逐步切换到新版本系统,现有技术每次都需要人工重新设计查询系统更新的对比方案,耗时、费力且容易遗漏问题。In the maintenance process of the existing query system, iterative upgrades are often required, such as changing the interface of input or output data, changing the logic of the query, and changing the coding language. It is necessary to compare and verify the output results before and after the iteration; at the same time, in order to reduce the losses caused by the introduction of iterations, the network data is usually controlled according to certain rules, and the network data is gradually switched from the old version of the system to the new version. system, the existing technology needs to manually redesign the comparison scheme of query system update every time, which is time-consuming, laborious and easy to miss problems.
发明内容SUMMARY OF THE INVENTION
本发明要解决的技术问题是为了克服现有技术查询系统迭代升级时,存在每次都需要人工重新设计对比方案,设计繁琐,耗时费力且容易遗漏问题的缺陷,提供一种查询系统的更新方法、装置、电子设备及存储介质。本发明是通过下述技术方案来解决上述技术问题:The technical problem to be solved by the present invention is to overcome the defects of manually redesigning the comparison scheme every time when the query system of the prior art is iteratively upgraded, which is cumbersome in design, time-consuming and laborious and easy to miss, and provides an update of the query system. Methods, apparatus, electronic devices, and storage media. The present invention solves the above-mentioned technical problems through the following technical solutions:
第一,本发明提供一种查询系统的更新方法,所述查询系统包括第一系统和第二系统,所述第一系统和所述第二系统为实现同一功能的查询系统,所述第二系统为所述第一系统更新后的系统,所述更新方法包括:First, the present invention provides an update method for a query system, the query system includes a first system and a second system, the first system and the second system are query systems that implement the same function, and the second system The system is an updated system of the first system, and the update method includes:
将预设查询信息输入至所述第一系统,输出第一结果;inputting the preset query information into the first system, and outputting the first result;
将所述预设查询信息输入至所述第二系统,输出第二结果;inputting the preset query information into the second system, and outputting a second result;
若所述第一结果和所述第二结果相同,则将所述第二系统作为当前查询系统。If the first result and the second result are the same, the second system is used as the current query system.
优选地,所述输出第二结果的步骤后包括:Preferably, the step of outputting the second result includes:
若所述第一结果和所述第二结果不相同,更新所述第二系统以生成第三系统;if the first result and the second result are not identical, updating the second system to generate a third system;
将所述预设查询信息输入至所述第三系统,输出第三结果;Inputting the preset query information into the third system, and outputting a third result;
若所述第三结果与所述第一结果不相同,则将所述第三系统作为所述第二系统,并返回所述更新所述第二系统的步骤。If the third result is different from the first result, the third system is regarded as the second system, and the step of updating the second system is returned.
优选地,所述若所述第一结果和所述第二结果不相同的步骤后包括:Preferably, after the step if the first result and the second result are different, the step includes:
根据所述第一结果及所述第二结果生成第一差异结果,所述第一差异结果为所述第一结果和所述第二结果的差异内容;generating a first difference result according to the first result and the second result, where the first difference result is the difference content of the first result and the second result;
所述若所述第三结果与所述第一结果不相同的步骤后包括:The step if the third result is different from the first result includes:
根据所述第一结果及所述第三结果生成第二差异结果,所述第二差异结果为所述第一结果和所述第三结果的差异内容;generating a second difference result according to the first result and the third result, where the second difference result is the difference content of the first result and the third result;
将所述第一差异结果和所述第二差异结果存储于日志数据库;storing the first difference result and the second difference result in a log database;
或,or,
所述若所述第一结果和所述第二结果不相同的步骤后包括:After the step if the first result and the second result are different, include:
根据所述第一结果及所述第二结果生成第一差异结果,所述第一差异结果为所述第一结果和所述第二结果的差异内容;generating a first difference result according to the first result and the second result, where the first difference result is the difference content of the first result and the second result;
所述若所述第三结果与所述第一结果不相同的步骤后包括:The step if the third result is different from the first result includes:
根据所述第一结果及所述第三结果生成第二差异结果,所述第二差异结果为所述第一结果和所述第三结果的差异内容;generating a second difference result according to the first result and the third result, where the second difference result is the difference content of the first result and the third result;
获取预设周期内所有的所述第一差异结果和所述第二差异结果,并根据所述所有的所述第一差异结果和所述第二差异结果生成差异结果统计报表;Acquire all the first difference results and the second difference results in a preset period, and generate a difference result statistical report according to all the first difference results and the second difference results;
将所述差异结果统计报表存储于所述日志数据库。The difference result statistical report is stored in the log database.
优选地,所述将所述第二系统作为当前查询系统的步骤包括:Preferably, the step of using the second system as the current query system includes:
获取用户库,所述用户库为使用所述查询系统的用户集合;Obtaining a user database, the user database is a collection of users using the query system;
从所述用户库中获取目标用户;Obtain the target user from the user database;
将所述第二系统作为所述目标用户的当前查询系统。The second system is used as the current query system of the target user.
优选地,所述将所述第二系统作为所述目标用户的当前查询系统的步骤后包括:Preferably, the step of using the second system as the target user's current query system includes:
按照预设更新时间,将其他用户的当前查询系统更新为所述第二系统,所述其他用户为所述用户库中,除所述目标用户外的用户。According to a preset update time, the current query system of other users is updated to the second system, and the other users are users other than the target user in the user database.
优选地,所述按照预设更新时间,将其他用户的当前查询系统更新为所述第二系统的步骤前包括:Preferably, before the step of updating the current query system of other users to the second system according to the preset update time, the steps include:
获取所述目标用户的反馈;obtain feedback from the target user;
按照所述反馈,设置预设更新时间。According to the feedback, set a preset update time.
优选地,所述从所述用户库中获取目标用户的步骤包括:Preferably, the step of acquiring the target user from the user database includes:
获取目标地域;Get the target area;
获取所述用户库中所有用户的地域;Obtain the regions of all users in the user database;
将位于所述目标地域的用户作为目标用户。A user located in the target region is used as a target user.
第二,本发明提供一种查询系统的更新装置,其特征在于,所述查询系统包括第一系统和第二系统,所述第一系统和所述第二系统为实现同一功能的查询系统,所述第二系统为所述第一系统更新后的系统,所述更新装置包括:Second, the present invention provides an update device for a query system, characterized in that the query system includes a first system and a second system, and the first system and the second system are query systems that implement the same function, The second system is an updated system of the first system, and the update device includes:
输入模块,用于将预设查询信息输入至所述第一系统,输出第一结果;也用于将所述预设查询信息输入至所述第二系统,输出第二结果;an input module, used for inputting preset query information into the first system and outputting a first result; also used for inputting the preset query information into the second system and outputting a second result;
升级模块,用于若所述第一结果和所述第二结果相同,则将所述第二系统作为当前查询系统。An upgrade module, configured to use the second system as the current query system if the first result and the second result are the same.
第三,本发明提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的查询系统的更新方法。Third, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, the processor implementing the above-mentioned update method of the query system when executing the computer program .
第四,本发明提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的查询系统的更新方法。Fourth, the present invention provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned update method of the query system is implemented.
本发明的积极进步效果在于:The positive progressive effect of the present invention is:
本发明将同一预设查询信息输入同一功能的第一查询系统和第二查询系统,通过比较两个系统的查询结果,自动验证更新第一查询系统后的第二查询系统是否迭代升级成功;若迭代升级失败,统计两个系统的差异,对工作人员的调试第二查询系统提供依据;若迭代升级成功,逐渐扩大使用第二查询系统的目标用户,实现查询系统的灰度更新。本发明为查询系统的迭代升级提供可复用可扩展的更新方案,节省查询系统迭代升级的开发时间,提高开发效率。The present invention inputs the same preset query information into the first query system and the second query system with the same function, and automatically verifies whether the second query system after updating the first query system is iteratively upgraded by comparing the query results of the two systems; If the iterative upgrade fails, count the differences between the two systems to provide a basis for the staff to debug the second query system; if the iterative upgrade is successful, gradually expand the target users who use the second query system to achieve grayscale update of the query system. The invention provides a reusable and scalable update scheme for the iterative upgrade of the query system, saves the development time of the iterative upgrade of the query system, and improves the development efficiency.
附图说明Description of drawings
图1为本发明实施例1的查询系统的更新方法的流程图;1 is a flowchart of an update method for a query system according to
图2为本发明实施例1的查询系统循环验证方法的流程图;FIG. 2 is a flowchart of the query system loop verification method according to
图3为本发明实施例1的存储差异结果的流程图;Fig. 3 is the flow chart of the storage difference result of
图4为本发明实施例1的存储差异结果统计报表的流程图;Fig. 4 is the flow chart of the storage difference result statistical report of the
图5为本发明实施例1的灰度更新查询系统的流程图;5 is a flowchart of the grayscale update query system according to
图6为本发明实施例1的选择目标用户的流程图;6 is a flowchart of selecting a target user according to
图7为本发明实施例1的查询系统新旧逻辑更新方法的流程图;7 is a flowchart of a method for updating old and new logic in a query system according to
图8为本发明实施例1的查询系统新旧逻辑验证方法的流程图;8 is a flowchart of a method for verifying old and new logic in a query system according to
图9为本发明实施例2的查询系统的更新装置的结构示意图;9 is a schematic structural diagram of an update device of the query system according to
图10为本发明实施例3的电子设备的结构示意图。FIG. 10 is a schematic structural diagram of an electronic device according to Embodiment 3 of the present invention.
具体实施方式Detailed ways
下面通过实施例的方式进一步说明本发明,但并不因此将本发明限制在所述的实施例范围之中。The present invention is further described below by way of examples, but the present invention is not limited to the scope of the described examples.
实施例1Example 1
本实施例提供一种查询系统的更新方法,该方法应用在查询系统进行迭代升级过程中,迭代升级包括更新输入或输出数据的接口、更新查询的逻辑及更新编码语言等。这时,查询系统包括迭代升级前的第一系统和迭代升级后的第二系统,两个系统为实现同一功能的查询系统,其中,第一系统和第二系统既可以是独立的查询系统,也可以是某一系统中的查询模块。This embodiment provides a query system update method, which is applied in the iterative upgrade process of the query system. The iterative upgrade includes updating the interface of input or output data, updating the query logic, updating the coding language, and the like. At this time, the query system includes the first system before the iterative upgrade and the second system after the iterative upgrade. The two systems are query systems that implement the same function, wherein the first system and the second system can be independent query systems. It can also be a query module in a system.
参见图1,更新方法包括:Referring to Figure 1, the update method includes:
S1、将预设查询信息输入至第一系统,输出第一结果;S1, input the preset query information into the first system, and output the first result;
S2、将预设查询信息输入至第二系统,输出第二结果;S2, input the preset query information into the second system, and output the second result;
若第一结果和第二结果相同,则执行步骤S3;If the first result and the second result are the same, step S3 is performed;
S3、将第二系统作为当前查询系统,当前查询系统为用户正在使用的查询系统,在这之前用户默认使用第一查询系统。S3. The second system is used as the current query system, and the current query system is the query system being used by the user, and the user uses the first query system by default before this.
本实施例通过比较第一系统和第二系统的输出结果来保障迭代升级的正确性,具体的,若输出结果一致,则第二系统可以实现第一系统的查询功能,验证结果为迭代升级成功;若输出结果不一致,则第二系统不可以实现或者不能完全实现第一系统的查询功能,验证结果为迭代升级失败,从而实现两个系统对比验证步骤的自动化,提高对比验证的效率。This embodiment ensures the correctness of the iterative upgrade by comparing the output results of the first system and the second system. Specifically, if the output results are consistent, the second system can implement the query function of the first system, and the verification result is that the iterative upgrade is successful If the output results are inconsistent, the second system cannot realize or completely realize the query function of the first system, and the verification result is an iterative upgrade failure, thereby realizing the automation of the comparison and verification steps of the two systems and improving the efficiency of comparison and verification.
在一些实施方式中,参见图2,步骤S2后包括:In some embodiments, referring to FIG. 2 , after step S2, it includes:
若第一结果和第二结果不相同,则执行步骤S4;If the first result is not the same as the second result, step S4 is performed;
S4、更新第二系统以生成第三系统;S4, update the second system to generate the third system;
S5、将预设查询信息输入至第三系统,输出第三结果;S5, input the preset query information into the third system, and output the third result;
S6、若第三结果与第一结果不相同,则将第三系统作为第二系统,并返回步骤S4。S6. If the third result is different from the first result, use the third system as the second system, and return to step S4.
若第三结果与第一结果相同,则将第三系统作为第二系统,并返回步骤S3或者直接将第三系统作为当前查询系统。If the third result is the same as the first result, the third system is used as the second system, and the process returns to step S3, or the third system is directly used as the current query system.
若第一系统和第二系统的输出结果不一致,经过人工检修,第二系统更新为第三系统。再将同一预设查询信息输入第三系统进行验证,若第三系统的输出结果(第三结果)和第一结果相同,则将第三系统作为当前查询系统。但是若第三结果和第一结果还是不相同,那么仍然要进行人工检修,将第三系统作为第二系统,并返回更新第二系统的步骤。If the output results of the first system and the second system are inconsistent, after manual maintenance, the second system is updated to the third system. The same preset query information is then input into the third system for verification. If the output result (third result) of the third system is the same as the first result, the third system is used as the current query system. However, if the third result is still different from the first result, manual maintenance is still required, the third system is used as the second system, and the step of updating the second system is returned.
根据实践经验,迭代升级查询系统不会一蹴而就,所以考虑到多次更新后,更新后的系统的输出结果仍与第一系统的输出结果不一致的可能性,本实施方式提供了多次更新查询系统的验证方式,从而为查询系统的迭代升级提供可复用可扩展的验证方案,节省查询系统迭代升级的验证时间,提高验证效率。According to practical experience, iteratively upgrading the query system will not be accomplished overnight, so considering the possibility that the output results of the updated system are still inconsistent with the output results of the first system after multiple updates, this embodiment provides multiple updates to the query system Therefore, it provides a reusable and scalable verification scheme for the iterative upgrade of the query system, saves the verification time of the iterative upgrade of the query system, and improves the verification efficiency.
在一些实施方式中,参见图3,步骤S4后包括:In some embodiments, referring to FIG. 3 , after step S4, it includes:
S41、根据第一结果及第二结果生成第一差异结果,第一差异结果为第一结果和第二结果的差异内容,差异内容包括逻辑差异内容、算法差异内容等;S41, generate a first difference result according to the first result and the second result, the first difference result is the difference content between the first result and the second result, and the difference content includes logical difference content, algorithm difference content, etc.;
步骤S6后包括:After step S6, it includes:
S61、根据第一结果及第三结果生成第二差异结果,第二差异结果为第一结果和第三结果的差异内容,差异内容包括逻辑差异内容、算法差异内容等;S61, generating a second difference result according to the first result and the third result, where the second difference result is the difference content between the first result and the third result, and the difference content includes logical difference content, algorithm difference content, etc.;
S7、将第一差异结果和第二差异结果存储于日志数据库。S7. Store the first difference result and the second difference result in the log database.
在本实施方式中,查询系统的开发人员可以根据自动生成的第一差异结果和第二差异结果排查问题和差异,提高开发效率。In this embodiment, the developer of the query system can troubleshoot problems and differences according to the automatically generated first difference result and second difference result, thereby improving development efficiency.
另外,当多次更新查询系统后,参见图4,根据步骤S41和步骤S61会产生许多差异结果,更新方法还包括:In addition, after the query system is updated multiple times, referring to FIG. 4 , many different results will be generated according to steps S41 and S61, and the update method further includes:
S8、获取预设周期内所有的第一差异结果和第二差异结果,并根据所有的第一差异结果和第二差异结果生成差异结果统计报表;S8. Acquire all the first difference results and the second difference results in the preset period, and generate a difference result statistical report according to all the first difference results and the second difference results;
S9、将差异结果统计报表存储于日志数据库。S9. Store the difference result statistical report in the log database.
在本实施方式中,按照预设周期,统计不同阶段的更新后的查询系统和原始查询系统的差别,形成统计报表,从而记录整个迭代升级过程中的必要日志,从而为开发查询系统提供可靠依据,提高开发效率。In this embodiment, according to a preset period, the difference between the updated query system and the original query system at different stages is counted, and a statistical report is formed, so as to record the necessary logs in the entire iterative upgrade process, thereby providing a reliable basis for the development of the query system , improve development efficiency.
在一个实施方式中,参见图5,步骤S3包括:In one embodiment, referring to FIG. 5 , step S3 includes:
S31、获取用户库。S31. Obtain a user database.
其中,用户库为使用查询系统的用户集合;Among them, the user database is a collection of users who use the query system;
S32、从用户库中获取目标用户;S32. Obtain the target user from the user database;
S33、将第二系统作为目标用户的当前查询系统。S33. Use the second system as the current query system of the target user.
在本实施方式中,选择部分用户(即目标用户)试用新查询系统,从而减少因迭代升级生产的问题而造成的损失,降低迭代升级的成本。In this embodiment, some users (ie, target users) are selected to try out the new query system, thereby reducing losses caused by iteratively upgrading production and reducing the cost of iteratively upgrading.
在一个实施方式中,参见图5,步骤S33后包括:In one embodiment, referring to FIG. 5 , after step S33, it includes:
S34、按照预设更新时间,将其他用户的当前查询系统更新为第二系统,其他用户为用户库中,除目标用户外的用户。S34 , according to the preset update time, update the current query system of other users to the second system, and the other users are users other than the target user in the user database.
在本实施方式中,根据预设更新时间段或预设更新时间点,将用户库中的所有用户使用的查询系统切换成验证合格的新查询系统,从而提高用户的使用体验。In this embodiment, according to the preset update time period or preset update time point, the query system used by all users in the user database is switched to a new qualified query system, thereby improving the user experience.
在一个实施方式中,参见图5,步骤S34前包括:In one embodiment, referring to FIG. 5 , before step S34, it includes:
S341、获取目标用户的反馈;S341. Obtain feedback from the target user;
S342、按照反馈,设置预设更新时间。S342 , according to the feedback, set a preset update time.
在本实施方式中,可以根据试用新查询系统的部分用户的反馈,设置将用户库中的所有用户使用的查询系统切换成验证合格的新查询系统的时间。反馈包括技术反馈、使用体验反馈等;In this embodiment, the time for switching the query system used by all the users in the user database to the qualified new query system can be set according to the feedback of some users who have tried the new query system. Feedback includes technical feedback, user experience feedback, etc.;
例如,在合理的反馈时间内,若目标用户大部分反馈良好,则可以及时安排用户库中的所有用户使用的查询系统切换成验证合格的新查询系统。For example, within a reasonable feedback time, if most of the target users have good feedback, the query system used by all users in the user database can be arranged to switch to a new query system that is qualified for verification in time.
例如,在合理的反馈时间内,若目标用户有反馈有网页打不开、查询内容与原查询系统不一致等问题,开发人员对这些问题进行调查,调查结果若是更新后的查询系统本身问题的,可以进一步迭代升级查询系统,并延长将用户库中的所有用户使用的查询系统切换成验证合格的新查询系统的更新时间。For example, within a reasonable feedback time, if the target user has feedback that the webpage cannot be opened, the query content is inconsistent with the original query system, etc., the developer will investigate these problems. If the investigation result is a problem with the updated query system itself, The query system can be further upgraded iteratively, and the update time of switching the query system used by all users in the user database to a new qualified query system can be extended.
在一个实施方式中,参见图6,步骤S32包括:In one embodiment, referring to FIG. 6 , step S32 includes:
S321、获取目标地域;S321. Obtain the target region;
S322、获取用户库中所有用户的地域;S322. Obtain the regions of all users in the user database;
S323、将位于目标地域的用户作为目标用户。S323. Use the user located in the target region as the target user.
在本实施方式中,对目标用户的选择具体可以根据用户的地域选择。In this embodiment, the selection of the target user may be specifically selected according to the user's region.
例如,预设A省用户使用新查询系统。通过定位装置获取用户库中所有用户的地理位置,将所有位于A省的用户使用的查询系统更新为新查询系统。For example, it is preset that users in province A use the new query system. Obtain the geographic locations of all users in the user database through the positioning device, and update the query system used by all users located in province A to a new query system.
在本实施例中,通过地域选择使用新查询系统的目标用户,便于开发人员选择并区分目标用户,实现新旧系统的灰度更新,提高开发质量。In this embodiment, target users who use the new query system are selected by region, which facilitates developers to select and distinguish target users, realize grayscale update of old and new systems, and improve development quality.
下面以一具体实例来对本实施例中的查询系统的更新方法进行说明:The update method of the query system in this embodiment is described below with a specific example:
图7为需要更新查询系统的执行逻辑(或参数)时的流程图,首先进入验证原逻辑和新逻辑的流程(即图7不需要灰度但需要对比的流程):Figure 7 is a flow chart when the execution logic (or parameters) of the query system needs to be updated. First, enter the flow of verifying the original logic and the new logic (that is, the flow of Figure 7 that does not require grayscale but needs to be compared):
参见图8,配置中心能够动态控制新旧逻辑,将对比数据组装、入队,输入原逻辑、新逻辑执行器(即将预设查询信息输入至所述第一系统和第二系统),执行对比逻辑,将原逻辑、新逻辑执行器得出的结果输入结果比较器(即比较第一结果和第二结果)。若两个结果不相同,则将两个结果输入差异处理器,将差异处理器得出的结果等整个验证过程的必要数据(即第一差异结果和第二差异结果)存储至日志(即日志数据库),定期产生离线报表(即差异结果统计报表),便于开发人员排查问题和差异。若两个结果相同,将新逻辑存储至日志,便于日后选择合适时间将新逻辑作为当前查询系统的执行逻辑。Referring to Figure 8, the configuration center can dynamically control the old and new logic, assemble and queue the comparison data, input the original logic and the new logic executor (that is, input the preset query information into the first system and the second system), and execute the comparison logic , and input the result obtained by the original logic and the new logic executor into the result comparator (ie, compare the first result with the second result). If the two results are not the same, input the two results into the difference processor, and store the results obtained by the difference processor and other necessary data of the entire verification process (ie the first difference result and the second difference result) in the log (ie the log database), and generate offline reports (i.e., statistical reports of difference results) on a regular basis, which is convenient for developers to troubleshoot problems and differences. If the two results are the same, the new logic is stored in the log, so that the new logic can be used as the execution logic of the current query system at an appropriate time in the future.
当新旧逻辑的验证结果一致,就可以进入灰度流程(即系统在进行逻辑升级中,旧逻辑可以平滑过渡到新逻辑的一种更新流程):When the verification results of the old and new logic are consistent, the grayscale process can be entered (that is, an update process in which the old logic can smoothly transition to the new logic during the logic upgrade of the system):
在灰度流程中,参见图8,用流量控制程序精准控制流量进入灰度(流量即用户数量),具体的方法可以为先给一小部分用户试用执行新逻辑的查询系统,之后通过埋点监控等方式得到用户反馈,确定新查询系统的效果达到预期之后,再慢慢扩大使用新查询系统的用户数量,直到这个全新的查询系统覆盖到所有的系统用户。In the grayscale process, see Figure 8, the flow control program is used to precisely control the flow into the grayscale (the flow is the number of users). After obtaining feedback from users through monitoring and other methods, after confirming that the effect of the new query system has reached expectations, the number of users who use the new query system will be gradually expanded until the new query system covers all system users.
当查询系统的效果未达到预期时,也可以将用户反馈存储至日志,并定期产生离线报表,方便开发人员排查新执行逻辑中的问题,优化新查询系统,提高用户的使用体验。When the effect of the query system does not meet expectations, user feedback can also be stored in the log, and offline reports can be generated regularly to facilitate developers to troubleshoot problems in the new execution logic, optimize the new query system, and improve user experience.
实施例2Example 2
本实施例提供一种查询系统的更新装置,查询系统包括第一系统和第二系统,第一系统和第二系统为实现同一功能的查询系统,第二系统为第一系统更新后的系统,参见图9,更新装置包括:This embodiment provides an update device for a query system, the query system includes a first system and a second system, the first system and the second system are query systems that implement the same function, and the second system is an updated system of the first system, Referring to Figure 9, the update device includes:
输入模块1,用于将预设查询信息输入至第一系统,输出第一结果;也用于将预设查询信息输入至第二系统,输出第二结果;The
升级模块2,用于若第一结果和第二结果相同,则将第二系统作为当前查询系统。The
在一些实施方式中,更新装置还包括:In some embodiments, the updating apparatus further includes:
生成模块,用于若第一结果和第二结果不相同,更新第二系统以生成第三系统;a generating module for updating the second system to generate the third system if the first result and the second result are different;
输出模块1,还用于将预设查询信息输入至第三系统,输出第三结果;The
回转模块,用于若第三结果与第一结果不相同,则将第三系统作为第二系统,并返回生成模块。The turning module is configured to use the third system as the second system if the third result is different from the first result, and return to the generating module.
在一些实施方式中,生成模块,还用于根据第一结果及第二结果生成第一差异结果,第一差异结果为第一结果和第二结果的差异内容;根据第一结果及第三结果生成第二差异结果,第二差异结果为第一结果和第三结果的差异内容;并根据所有的第一差异结果和第二差异结果生成差异结果统计报表;In some embodiments, the generating module is further configured to generate a first difference result according to the first result and the second result, where the first difference result is the difference content of the first result and the second result; according to the first result and the third result generating a second difference result, where the second difference result is the difference content of the first result and the third result; and generating a difference result statistical report according to all the first difference results and the second difference result;
更新装置还包括:The update unit also includes:
存储模块,用于将第一差异结果和第二差异结果存储于日志数据库;将差异结果统计报表存储于日志数据库。The storage module is used for storing the first difference result and the second difference result in the log database; and storing the difference result statistical report in the log database.
获取模块,用于获取预设周期内所有的第一差异结果和第二差异结果。The acquiring module is configured to acquire all the first difference results and the second difference results in the preset period.
在一些实施方式中,获取模块,还用于获取用户库,用户库为使用查询系统的用户集合;从用户库中获取目标用户;In some embodiments, the acquiring module is further configured to acquire a user database, which is a collection of users who use the query system; acquire target users from the user database;
升级模块2,还用于将第二系统作为目标用户的当前查询系统。The
在一些实施方式中,升级模块2,还用于按照预设更新时间,将其他用户的当前查询系统更新为第二系统,其他用户为用户库中,除目标用户外的用户。In some embodiments, the
在一些实施方式中,获取模块,还用于获取目标用户的反馈;In some embodiments, the obtaining module is further configured to obtain feedback from the target user;
更新装置还包括:The update unit also includes:
设置模块,用于按照反馈,设置预设更新时间。The setting module is used to set the preset update time according to the feedback.
在一些实施方式中,获取模块,还用于获取目标地域;获取用户库中所有用户的地域;In some embodiments, the obtaining module is further used to obtain the target region; obtain the regions of all users in the user database;
设置模块,还用于将位于目标地域的用户作为目标用户。The setting module is also used to set the user in the target region as the target user.
需要说明的是,本实施例的查询系统的更新装置中各个模块的实现方式及技术效果可以参考实施例1的对应部分,因此在此就不再赘述。It should be noted that, for the implementation manner and technical effect of each module in the updating apparatus of the query system of this embodiment, reference may be made to the corresponding parts of
实施例3Example 3
本实施例提供了一种电子设备,图10为该电子设备的模块示意图。电子设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行程序时实现实施例1的查询系统的更新方法。图10显示的电子设备30仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。This embodiment provides an electronic device, and FIG. 10 is a schematic block diagram of the electronic device. The electronic device includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the program, the method for updating the query system of
如图10所示,电子设备30可以以通用计算设备的形式表现,例如其可以为服务器设备。电子设备30的组件可以包括但不限于:上述至少一个处理器31、上述至少一个存储器32、连接不同系统组件(包括存储器32和处理器31)的总线33。As shown in FIG. 10 , the
总线33包括数据总线、地址总线和控制总线。The
存储器32可以包括易失性存储器,例如随机存取存储器(RAM)321和/或高速缓存存储器322,还可以进一步包括只读存储器(ROM)323。
存储器32还可以包括具有一组(至少一个)程序模块324的程序/实用工具325,这样的程序模块324包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The
处理器31通过运行存储在存储器32中的计算机程序,从而执行各种功能应用以及数据处理,例如本发明实施例1的查询系统的更新方法。The
电子设备30也可以与一个或多个外部设备34(例如键盘、指向设备等)通信。这种通信可以通过输入/输出(I/O)接口35进行。并且,模型生成的设备30还可以通过网络适配器36与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图10所示,网络适配器36通过总线33与模型生成的设备30的其它模块通信。应当明白,尽管图中未示出,可以结合模型生成的设备30使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理器、外部磁盘驱动阵列、RAID(磁盘阵列)系统、磁带驱动器以及数据备份存储系统等。The
应当注意,尽管在上文详细描述中提及了电子设备的若干单元/模块或子单元/模块,但是这种划分仅仅是示例性的并非强制性的。实际上,根据本发明的实施方式,上文描述的两个或更多单元/模块的特征和功能可以在一个单元/模块中具体化。反之,上文描述的一个单元/模块的特征和功能可以进一步划分为由多个单元/模块来具体化。It should be noted that although several units/modules or sub-units/modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units/modules described above may be embodied in one unit/module according to embodiments of the present invention. Conversely, the features and functions of one unit/module described above may be further divided into multiple units/modules to be embodied.
实施例4Example 4
本实施例提供了一种计算机可读存储介质,其上存储有计算机程序,程序被处理器执行时实现实施例1的查询系统的更新方法。This embodiment provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the update method for the query system of
其中,可读存储介质可以采用的更具体可以包括但不限于:便携式盘、硬盘、随机存取存储器、只读存储器、可擦拭可编程只读存储器、光存储器件、磁存储器件或上述的任意合适的组合。Wherein, the readable storage media may include, but are not limited to, portable disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, optical storage devices, magnetic storage devices, or any of the above suitable combination.
在可能的实施方式中,本发明还可以实现为一种程序产品的形式,其包括程序代码,当程序产品在终端设备上运行时,程序代码用于使终端设备执行实现实施例1的查询系统的更新方法。In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program codes. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the query system that implements
其中,可以以一种或多种程序设计语言的任意组合来编写用于执行本发明的程序代码,程序代码可以完全地在用户设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户设备上部分在远程设备上执行或完全在远程设备上执行。Wherein, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be completely executed on the user equipment, partially executed on the user equipment, as an independent software The package executes, partly on the user device, partly on the remote device, or entirely on the remote device.
虽然以上描述了本发明的具体实施方式,但是本领域的技术人员应当理解,这仅是举例说明,本发明的保护范围是由所附权利要求书限定的。本领域的技术人员在不背离本发明的原理和实质的前提下,可以对这些实施方式做出多种变更或修改,但这些变更和修改均落入本发明的保护范围。Although the specific embodiments of the present invention are described above, those skilled in the art should understand that this is only an illustration, and the protection scope of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principle and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210226692.6A CN114610350A (en) | 2022-03-09 | 2022-03-09 | Method and device for updating query system, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210226692.6A CN114610350A (en) | 2022-03-09 | 2022-03-09 | Method and device for updating query system, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114610350A true CN114610350A (en) | 2022-06-10 |
Family
ID=81861845
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210226692.6A Pending CN114610350A (en) | 2022-03-09 | 2022-03-09 | Method and device for updating query system, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114610350A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180336258A1 (en) * | 2017-05-22 | 2018-11-22 | Sap Se | Validating Query Results During Asynchronous Database Replication |
CN110780904A (en) * | 2019-10-28 | 2020-02-11 | 深圳前海微众银行股份有限公司 | Application updating method and device |
CN111552648A (en) * | 2020-05-08 | 2020-08-18 | 支付宝(杭州)信息技术有限公司 | Automatic verification method and system for application |
CN112015469A (en) * | 2020-07-14 | 2020-12-01 | 北京淇瑀信息科技有限公司 | System reconfiguration method and device and electronic equipment |
CN113312257A (en) * | 2021-05-24 | 2021-08-27 | 深圳市中科明望通信软件有限公司 | Version identification method and device, storage medium and computer equipment |
-
2022
- 2022-03-09 CN CN202210226692.6A patent/CN114610350A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180336258A1 (en) * | 2017-05-22 | 2018-11-22 | Sap Se | Validating Query Results During Asynchronous Database Replication |
CN110780904A (en) * | 2019-10-28 | 2020-02-11 | 深圳前海微众银行股份有限公司 | Application updating method and device |
CN111552648A (en) * | 2020-05-08 | 2020-08-18 | 支付宝(杭州)信息技术有限公司 | Automatic verification method and system for application |
CN112015469A (en) * | 2020-07-14 | 2020-12-01 | 北京淇瑀信息科技有限公司 | System reconfiguration method and device and electronic equipment |
CN113312257A (en) * | 2021-05-24 | 2021-08-27 | 深圳市中科明望通信软件有限公司 | Version identification method and device, storage medium and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112181951B (en) | Heterogeneous database data migration method, device and equipment | |
CN118170685B (en) | An automated testing platform and method for an adaptive operating system environment | |
US11748184B2 (en) | Data center issue impact analysis | |
CN118709680A (en) | A data generation method and system based on multi-agent large language model | |
US10310961B1 (en) | Cognitive dynamic script language builder | |
US20250013880A1 (en) | Method and system for generating and optimizing test cases for an engineering program | |
CN110941625B (en) | Payment consistency checking method, system, equipment and storage medium | |
US11418411B1 (en) | Data center issue resolution prioritization | |
JP5352027B2 (en) | Computer system management method and management apparatus | |
CN116069676B (en) | Version comparison method, device, terminal equipment and storage medium | |
CN114610350A (en) | Method and device for updating query system, electronic equipment and storage medium | |
CN118312094A (en) | Disk array configuration method, device, electronic equipment and storage medium | |
US20230274050A1 (en) | Critical infrastructure blueprint selection for optimized response to state changing conditions | |
US20240193072A1 (en) | Autosuggestion of involved code paths based on bug tracking data | |
US20230130927A1 (en) | Data Center Issue Contextualization and Enrichment | |
CN118656099B (en) | Vehicle controller upgrade method, system and electronic equipment | |
US11513862B2 (en) | System and method for state management of devices | |
US20240338203A1 (en) | Artificial intelligence (ai) supported graph enabled method to manage upgrades for applications | |
US20250053307A1 (en) | Using artificial intelligence (ai) for reconciliation of migrated information | |
CN112650663B (en) | A code processing method, device, equipment and medium | |
US20240427692A1 (en) | Graphical Neural Network for Error Identification | |
US20250103931A1 (en) | Strategizing distributed systems using quantum simulation | |
Ijaz et al. | IMPROVING THE USABILITY TESTING: FUZZY BASED EXPERT SYSTEM FOR TEST CASE GENERATION ON WEB GRAPHICAL USER INTERFACE | |
US20040194091A1 (en) | System and method for capturing and managing a process flow | |
CN119917409A (en) | Interface testing method, system, electronic device, storage medium and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |