N
N
Never Ever2020-07-08 14:45:03
MySQL
Never Ever, 2020-07-08 14:45:03

How to check if a query is correct after refactoring?

I have a properly working query that selects a large number of records, but it is slow, I already have ideas how to optimize it, but I want to make sure that my changes do not break it and it will return the same data.
How can I check this using MySql 8? It will also be interesting for other versions of MySql 5.* and PostrgesSql

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2020-07-08
@melkij

(query 1) except (query 2);
(query 2) except (query 1);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question