xml version="1.0" encoding="ISO-8859-1"?>
|
Apache HTTP Server Version 2.2 ![]() Apache Module mod_dbdAvailable Languages: en
Summary
DirectivesTopicsSee alsoConnection PoolingThis module manages database connections, in a manner optimised for the platform. On non-threaded platforms, it provides a persistent connection in the manner of classic LAMP (Linux, Apache, Mysql, Perl/PHP/Python). On threaded platform, it provides an altogether more scalable and efficient connection pool, as described in this article at ApacheTutor. Note thatmod_dbd
supersedes the modules presented in that article.
Apache DBD API
SQL Prepared Statements
It is up to dbd user modules to use the prepared statements
and document what statements can be specified in httpd.conf,
or to provide their own directives and use DBDExptime Directive
Set the time to keep idle connections alive where the number of connections specified in DBDKeep has been exceeded (threaded platforms only). DBDKeep Directive
Set the maximum number of connections per process to be sustained, other than for handling peak demand (threaded platforms only). DBDMax Directive
Set the hard maximum number of connections per process (threaded platforms only). DBDMin Directive
Set the minimum number of connections per process (threaded platforms only). DBDParams Directive
As required by the underlying driver. Typically this will be used to pass whatever cannot be defaulted amongst username, password, database name, hostname and port number for connection. Connection string parameters for current drivers include:
DBDPersist Directive
If set to Off, persistent and pooled connections are disabled. A new database connection is opened when requested by a client, and closed immediately on release. This option is for debugging and low-usage servers. The default is to enable a pool of persistent connections (or a single LAMP-style persistent connection in the case of a non-threaded server), and should almost always be used in operation. Prior to version 2.2.2, this directive accepted only the values
DBDPrepareSQL Directive
For modules such as authentication that use repeatedly use a single SQL statement, optimum performance is achieved by preparing the statement at startup rather than every time it is used. This directive prepares an SQL statement and assigns it a label. DBDriver Directive
Selects an apr_dbd driver by name. The driver must be installed
on your system (on most systems, it will be a shared object or dll).
For example, Available Languages: en |