I am trying to create performance tests in MySQL v8. For this, I need to generate a fixed number of rows, so I can insert them into my tables.
In PostgreSQL, I would do something like:
insert into film(title)
select random_string(30)
from generate_series(1, 100000);
Here, random_string(int)
is a custom function. In MySQL, I could use something as mentioned in https://stackoverflow.com/a/47884557/9740433, which would be sufficient I suppose.
How do I generate the 100k rows in MySQL v8?