lstrojny / phpunit-clever-and-smart

Smarter test runner for PHPUnit
169 stars 13 forks source link

Batch insert / update #14

Open staabm opened 10 years ago

staabm commented 10 years ago

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.

lstrojny commented 10 years ago

Could you elaborate a little, I don’t get it yet.

staabm commented 10 years ago

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.

lstrojny commented 10 years ago

Ah, makes sense. Let’s wait for the results from #15 and than decide where to go from there.