简体   繁体   English

在自动化中存储执行期间使用的 sql 查询的最佳方法是什么

[英]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.

相关问题 在Java中存储SQL查询的最佳方法是什么 - What is the best way to store sql queries in java 无法使用数据库时存储数据的最佳方法是什么? - What is the best way to store data when a database could not be used? 存储常用(不可更改)列表,地图的最佳方法是什么? - What is the best way to store often used (not changeable) List, Map? 从自动化框架的 Excel 表中存储数据的最佳方法 - Best way to store data from excel sheet for automation framework 简洁存储常用方法的最佳方法 - Best way to concisely store frequently used methods 使用 RestHighLevelClient 执行 elasticsearch 查询的最佳方法是什么 - What is the best way to execute elasticsearch queries with RestHighLevelClient 将文本数据存储在一个或多个文件中以便可以在各种平台上使用的最佳方法是什么? - What is the best way to store text data in a file/files so it can be used in various platforms? 创建测试自动化套件即服务的最佳方法是什么 - What is the best way to create a test automation suite as a service 使用Hibernate的商店数组的最佳方法是什么? - What is the best way of store arrays with Hibernate? 在内存中存储字节数组的最佳方法是什么 - What is the best way to store a byte array in memory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM