Created
September 12, 2013 19:27
-
-
Save icodeforlove/6542623 to your computer and use it in GitHub Desktop.
insert_data procedure takes about 230 seconds to run 1 million inserts
This file contains hidden or 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
| DELIMITER ;; | |
| CREATE PROCEDURE insert_data() | |
| BEGIN | |
| DECLARE i INT DEFAULT 0; | |
| WHILE i < 1000000 DO | |
| /* QUERY */ | |
| SET i = i + 1; | |
| END WHILE; | |
| END;; | |
| DELIMITER ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment