phpunit-clever-and-smart
phpunit-clever-and-smart copied to clipboard
Batch insert / update
Investigate if pushing each insert/update to a queue and and execute it in batches in a shutdown function would reduce IO and speedup things.
Could you elaborate a little, I don’t get it yet.
The idea is: instead of insert/update the db on each errored/successfull test we could store the results in a data structure and insert everything on shotdown... At least in mysql there are multi value insert statements which are a lot faster then insert row per row.
Ah, makes sense. Let’s wait for the results from #15 and than decide where to go from there.