php - does silex make new database connection for every request? -




i'm new silex/php. have following snippet in index.php.

$app->register(new \silex\provider\doctrineserviceprovider(), array(   'db.options' => $dbconfig )); 

dbconfig - configurable (pdo_sqlite or pdo_mysql). silex run under lighttpd php-fpm.

i have following questions:

  1. does silex create "new" database connection every request? if so, how 1 optimize performance old/existing connection used?
  2. if new connection not made, how can 1 change existing connection 1 other particular "app" instance when database configuration changes? in case, please assume "app" 1 process configuration change , gets know it.

thanks in advance.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -