[FYI] gwlib/dbpool.[ch] commited
Stipe Tolj <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Wapme Systems AG |
| Message-ID | <[email protected]> |
Hi list,
I have now commited a first implementation of database connection
pools. (Currenly MySQL mainly). They are intended to reduce/eliminate
database communication bottle-necks by providing a set of functions
that pool single connections into an more abstract data type, the pool
itself.
To try out, you have to configure with mysql support, i.e.
$ ./configure --with-mysql=<some location> --enable-mysql
$ make
$ ./test/test_dbpool -v 1 -h <host> -u <userid> -p <passwd> \
-d mysql -s 10 -q 1000 -t 10 -S "SHOW STATUS"
will create a pool of 10 connections to the mysql engine, create 10
client query threads that do 1000 sql queries "SHOW STATUS" in each
thread.
Stipe
[email protected]
-------------------------------------------------------------------
Wapme Systems AG
Vogelsanger Weg 80
40470 Düsseldorf
Tel: +49-211-74845-0
Fax: +49-211-74845-299
E-Mail: [email protected]
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are