closeio / mongoengine Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mongoengine/mongoengine
A Python Object-Document-Mapper for working with MongoDB
Home Page: http://mongoengine.org
License: MIT License
This project forked from mongoengine/mongoengine
A Python Object-Document-Mapper for working with MongoDB
Home Page: http://mongoengine.org
License: MIT License
Now that MongoDB v3.2 supports document validation, we should just use a $size
validator on all of our list fields. The advantage is that it would also work with $push
.
Right now, when using the in_bulk
method, a _cls
is not included in the query.
So, if you have documents like:
class Parent(Document):
...
class ChildOne(Parent):
...
class ChildTwo(Parent):
...
And then you try to do:
ChildTwo.objects.in_bulk(["PK of a ChildOne object"])
a ChildOne
object will be returned even though you're using the ChildTwo
document. This happens because a _cls
is not included in the in_bulk
query, so it just looks through the entire collection.
It appears that there has not been much activity on this project lately. Is this project going to be abandoned?
added upstream in MongoEngine#2314
I can reproduce this locally by running PYTHONHASHSEED=4 python setup.py test
on Python v3.5.9.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.