MongoEngine 0.4 Released
The long-awaited version 0.4 of MongoEngine has now been released. This is a major update, bringing a solid set of new features, optimisations and bug fixes. I’ll outline some of the main changes, and link to the documentation where relevant.
- Completely re-written Q-object implementation that no longer uses Javascript. A lengthier post on these will be coming soon, but basic point is that they should be a lot faster, more maintainable and less buggy as they now use native MongoDB queries.
- Support for GridFS through the
FileField
(docs) - Geospatial querying support. This is implemented though the
GeoPointField
and thenear
,within_box
andwithin_distance
query operators (docs) - New
SortedListField
andEmailField
(docs) - New
QuerySet
methods:distinct()
,create()
,snapshot()
,timeout()
andall()
For the slightly longer list of changes, check out the changelog.
To get going with 0.4, upgrade using pip install -U mongoengine
and have a read of the new documentation.
And a massive thanks to everyone who contributed code and submitted bug reports.