[Twisted-web] database best practices

Duncan McGreggor duncan.mcgreggor at gmail.com
Wed Nov 26 10:02:27 EST 2008


On Wed, 2008-11-26 at 11:12 +0100, tarjei wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi there,
> Michał Pasternak wrote:
> > Martin Bright wrote:
> >>
> >> Hi!
> >>
> >> What is the best way to implement synchronous DB access in a
> twisted
> >> application?
> >>
> > For newly created software I would use Divmod Axiom. It uses SQLite
> as a
> > backend.
> > For already existing databases (in MySQL or PostgreSQL) I would use
> > Canonical Storm. It even has a branch for integreation with Twisted,
> > which uses separate thread to access database.
> Has anyone tested this branch? I'd love to see a smallish usage
> example.

I have, and I'm a big fan. It's been on my list (of a billion things to
do) for a while to put together a mini tutorial for storm.twisted and
Nevow...

However, Thomas' tests for this branch are really good; they show nice
usage examples (for unit tests).

d




More information about the Twisted-web mailing list