PHP: Simulate multiple MySQL connections to same database
- by Varun
An insert query is constantly getting logged in my MySQL slow query log.
I want to see how much time the INSERT query is taking with 100 simultaneous insert operations(to the same table).
So I need to simulate the follwoing.
500 different simultaneous connections from PHP to the same database on a mysql server, all of which are inserting a row(simultaneously) to the same table.
DO I need to use any load testing tool?
Or Can I simply write a PHP script to do this?
Any thoughts?