Replies: 1 comment 2 replies
-
We're using MongoDB w/ Litestar at Telemetry. We use pure Motor with no ODM. Addressing your points in order:
That all being said, the popularity of Mongo combined with the deficiencies in the ecosystem could be an opportunity for Litestar to fill a need. I'd of course be willing to assist. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd suggest we add a MongoDB repository to work directly with the Motor async driver. The issue with the driver is that it has no official types, just an unofficial (but very solid) stubs library.
There are of course multiple ODMs such as beanie, Odmantic, Mongox that build on Motor + pydantic to create a smoother experience. I do think though that these have some inherent problems -
None of them uses the proper mongo query and aggregation syntax. They try to make it more
pythonic
, but i don't personally like that.They are not performant or performance orientated.
They don't integrate as smoothly with us as a proper repository or plugin will.
Thoughts and suggestions?
Beta Was this translation helpful? Give feedback.
All reactions