mongoengine
mongoengine copied to clipboard
A Python Object-Document-Mapper for working with MongoDB
PyMongo's bson api originally added SON to deal with the fact that, at the time, Python dictionaries were unordered and OrderedDict was not yet in the stdlib. SON was implemented...
## Overview When running a queryset like this: ```python values = set() for results in MyModel.objects.filter(Q(a__subfield=1) | Q(b__subfield=1)).values_list("a__subfield", "b__subfield"): values.update(results) ``` Over documents like this: ```json {"a": {"subfield": 1}, "b":...
Follow-up to https://github.com/MongoEngine/mongoengine/issues/2411 The README.rst and CONTRIBUTING.rst still reference travis instead of Github Actions, and should be updated.
[`Document._get_collection`](https://github.com/MongoEngine/mongoengine/blob/master/mongoengine/document.py#L173) is a protected method, but it's very useful for public usage. I don't see any reason why it should be protected. I guess this would suffice: ``` class Document(BaseDocument):...
I've just tried to pass my production servers from 0.8.7 (and some subclasses) to 0.10.0 and had to rollback. I've tried with 0.9.0 as a provisory solution but it was...
This is probably a less common use case. I've got a `mongoengine.Document` that represents a common data structure in my application, which I store in my database, and it's great...
Hi, I have document with bad performance. I used some profiler and you can see result ``` Tue Apr 4 13:02:36 2017 /tmp/profile.pstat 2399000 function calls (2399641 primitive calls) in...