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:
- does silex create "new" database connection every request? if so, how 1 optimize performance old/existing connection used?
- 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
Post a Comment