Fast, thread safe Python ORM?

Can you recommend a high-performance, thread-safe, and stable ORM for Python? The data I need to work with is not complicated, so SQLAlchemy is probably redundant.

+3
source share
4 answers

If you are looking for something high, and based on one of your comments, "something that can handle> 5k requests per second." You should keep in mind that ORM is not built specifically for speed and performance; it is built for usability. If the data is so basic that even SqlAlchemy can be excessive, and you mostly write, it might be easier to just do direct inserts and skip ORM altogether.

+3
source

peewee orm is fast and extremely lightweight, can be a good option if SQA is too heavy.

+6
source

SqlAlchemy SqlSoup SqlAlchemy . "" , .

+1

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

The latter was designed for and used by sites such as the Ubuntu / Canonical launchpad , so it should scale well.

0
source

Source: https://habr.com/ru/post/1762420/


All Articles