Fetching of data from database while updating data www datinguk com
You may see more than two if you reloaded the page several times and Apache allocated different processes to handle the PHP script.
By default, persistent connections stay open until the Apache process terminates.
For PHP, Apache runs in a multi-process mode, spawning child processes each of which can handle one PHP script.
Depending how Apache allocated these processes to handle the "ab" requests, you may see a varying number of rows in .
It is useful for short lived scripts such as typically used by web applications.
It allows the number of connections to be scaled as web site usage grows.
A common task when developing Web applications is to query a database and display the results in a Web browser.
There are a number of functions you can use to query an Oracle database, but the basics of querying are always the same: is passed to the query.
But the non-pooled script causes every single Apache process to open a separate connection to the database.