tags:

views:

89

answers:

4

Can you recommend a high-performance, thread-safe and stable ORM for Python? The data I need to work with isn't complex, so SQLAlchemy is probably an overkill.

A: 

The answers to this question should give you some ideas.

Manoj Govindan
I had read that thread before; however, it doesn't really answer my question. I need something that can handle >5k queries per second with lots of writes, and I'm afraid it will take quite a lot of time to benchmark and test all the available ORMs, so I would gladly use any advice from those who have experience with that sort of thing.
David Parunakian
+1  A: 

SqlAlchemy's SqlSoup module skips most of the tediousness of SqlAlchemy's mapping and session overhead. You can pretty much 'dive' straight in, take a look.

NeonNinja
A: 

You can use a more declarative layer on top of SQLAlchemy such as Elixir, or look at Storm which is also a bit more declerative than SQLAlchemy.

The latter was developed for and is used by sites such as Ubuntu/Canonical's launchpad, so it should scale well.

Ivo van der Wijk
A: 

If you are looking for something thats high performance, and based on one of your comments "something that can handle >5k queries per second". You need to keep in mind that an ORM is not built specifically for speed and performance, it is built for maintainability and ease of use. If the data is so basic that even SqlAlchemy might be overkill, and your mostly doing writes, it might be easier to just do straight inserts and skip the ORM altogether.

Tanerax
Thanks. I will also explore the possibility of switching to memcachedb for simple key-value pairs and fancy stuff like Cassandra for the rest if it will improve performance significantly without taking too much time to write.
David Parunakian