Created
March 17, 2021 12:54
-
-
Save vielhuber/cc900f830fe5f2c5a24ce5aad7654822 to your computer and use it in GitHub Desktop.
simulate slow insert query in sqlite #sql
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
WITH RECURSIVE r(i) AS ( | |
VALUES(0) | |
UNION ALL | |
SELECT i FROM r | |
LIMIT 10000000 | |
) | |
INSERT INTO test (col1, col2, col3) VALUES ((SELECT i FROM r ORDER BY i LIMIT 1), (SELECT i FROM r ORDER BY i LIMIT 1), (SELECT i FROM r ORDER BY i LIMIT 1)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment