[英]What is the best way to store the sql queries used during execution in Automation
I do UI vs DB validation for every step.我对每一步都进行 UI 与 DB 验证。 There are around 30 to 40 queries are being used now.
现在正在使用大约 30 到 40 个查询。 Earlier we stored in Excel sheet, which gave performance issues.
之前我们存储在 Excel 工作表中,这带来了性能问题。 Later switched to creating a class .txt file for each query.
后来切换到为每个查询创建一个类 .txt 文件。 Please suggest the best approach.
请建议最好的方法。
The fastest way is to create a stored procedure for this queries.最快的方法是为此查询创建一个存储过程。 In this way if you are frequently using the same queries it will not be recompiled after first run, subsequently increasing your performance.
这样,如果您经常使用相同的查询,则不会在第一次运行后重新编译,从而提高您的性能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.