Web development tips, Use

Sharing and preserving database connections

From the developerWorks archives

David Mertz Ph.D

Date archived: May 15, 2019 | First published: August 21, 2007

Databases are happy to handle many parallel requests (doing so is almost in the definition of a database). However, active processes (threaded or forked) almost inevitably eat up a valuable resource: database connections. The antipool.py module in Martin Blais' antiorm library does a nice job of making the pooling and reuse of connections transparent to programmers, and in a RDBMS-agnostic fashion.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some content, steps, or illustrations may have changed.

Zone=Web development
ArticleTitle=Web development tips: Use antipool.py for threaded Python database access