I've been thinking about this today. My attempts thus far to
write random queries which stress various parts of the server
have worked, and served a purpose - but have been rather huge and
clumsy.
For example a 5 union select, each comprising of 7 joins did have
it's value.. The problem with huge random queries is simply that
the results cannot be verified as easily as they were constructed
(unless you run the same on various DBMS). These huge tests are
mostly only good for checking if the server crashes.
Now, I wish to try write testcases that have these
properties:
- small
- results are self-verified
- each test is random, but reproducible given a seed
value
Tonight I'll throw together a code-generator to do simple
insert/select and post any interesting results here later.