My idea is this:
- get mysql dump file from production (GBs)
- prepare set of requests based on access logs and run them
- record all accessed records in mysql
- remove everything else in my db
- finally: have lightweight db and recorded requests as tests.
I have a problem with points 3+4. I wonder if such a feature even exists for MySQL, with the possibility to delete, and drop everything that was not accessed (including indexes rebuild).
Of course, having a lightweight DB is needed to easily auto-generate test fixtures, and this is the main purpose.