Database for Python Twisted
Posted
by Will
on Stack Overflow
See other posts from Stack Overflow
or by Will
Published on 2010-04-26T07:06:11Z
Indexed on
2010/04/26
7:13 UTC
Read the original article
Hit count: 312
There's an API for Twisted apps to talk to a database in a scalable way: twisted.enterprise.dbapi
The confusing thing is, which database to pick?
The database will have a Twisted app that is mostly making inserts and updates and relatively few selects, and then other strictly-read-only clients that are accessing the database directly making selects.
(The read-only users are not necessarily selecting the data that the Twisted app is inserting; its not as though the database is being used as a message-queue)
My understanding - which I'd like corrected/adviced - is that:
- Postgres is a great DB, but all the Python bindings - and there is a confusing maze of them - are abandonware
- There is psycopg2, but that makes a lot of noise about doing its own connection-pooling and things; does this co-exist gracefully/usefully/transparently with the Twisted async database connection pooling and such?
- SQLLite is a great database for little things but if used in a multi-user way it does whole-database locking, so performance would suck in the usage pattern I envisage
- MySQL - after the Oracle takeover, who'd want to adopt it now or adopt a fork?
- Is there anything else out there?
© Stack Overflow or respective owner