开发者

Are there unit testing for SQL queries, to measure if they run the same time after schema have changed?

开发者 https://www.devze.com 2023-01-19 10:22 出处:网络
I have a really heavy database, with multiple large tables, and lot of indexes. 开发者_如何转开发We keep constantly adding new indexes, and sometimes the old queries which ran ok at that moment, they

I have a really heavy database, with multiple large tables, and lot of indexes.

开发者_如何转开发We keep constantly adding new indexes, and sometimes the old queries which ran ok at that moment, they come up to use a new index, the wrong for that query.

I am wondering if there is some unit testing out there for MySQL queries, that can track if the response time of those queries is in a given range or have suffered from a change?


You could build a Test Plan using JMeter and run it at regular intervals to test the speed of the queries.

The test plan on their official link shows connecting to a MySQL db to run the queries

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号