To make this test go a lot faster, you can:
* Use BATCH statements with, say, 100 statements each
* Use ``execute_async()`` with future batching