Last active
December 8, 2019 17:03
-
-
Save tlkshadow/fd23c8478caaf4ff997d888b26457bd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Performance check if the index is hit | |
SET @start_time = NOW(); | |
SELECT * FROM products WHERE is_deleted = 0 AND status = 'ordered'; | |
SET @end_time = NOW(); | |
SELECT TIMEDIFF(@end_time, @start_time) AS difference; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment