Pure async
Everything that touches the database is a coroutine or returns an awaitable; the API has no synchronous form. Queries, saves, relation access and iteration use the Django ORM's names without an "a" prefix.
One async API for queries and models. Drivers run it natively on the event loop, or run synchronous database libraries on pooled threads
Everything that touches the database is a coroutine or returns an awaitable; the API has no synchronous form. Queries, saves, relation access and iteration use the Django ORM's names without an "a" prefix.
A threaded driver runs a synchronous database library or ORM on a thread owned by one pool slot, with that slot's connection. The event loop awaits the slot and never runs synchronous database code.
Building a query (Q, F, aggregates, lookups) is pure Python and does no I/O. It produces an adorm operation description that a driver executes.
Generated models are pydantic BaseModel subclasses, so the same schema serves the database layer and pydantic validation and serialisation.