I am implementing an application in which there will be many clients requesting a large number of small data packets from my web server. Now I'm not sure whether to use persistent database connections or not. The database is currently located on the same system as the web server, and can connect via a socket, but this may change in the near future.
As I know several PHP releases back, mysqli_pconnect was removed because it was suboptimal. Meanwhile, he seems to be back again.
In my scenario, I suppose I will not have another chance to process thousands of queries per minute, but with lots of persistent connections and a MySQL configuration that reserves only a small amount of resources per connection, right?
Thanks for your input!
source
share