-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Mongoengine #64
Comments
Hi @yamsu , I haven't tried with MongoEngine before, but I think you could try following the setup mentioned here scottrogowski/mongita#4 (comment) Please let me know if it works or not, I will have a deeper look ASAP. |
Had a quick test and I found we need |
hi @davidlatwe @yamsu any update on this issue ? thanks |
Hey @dodolboks thanks for asking! |
Minimum change for To try out at this moment, you have to monkey-patch But thanks to the work in MongoEngine/mongoengine#2729, once it's been released (probably import montydb
import mongoengine
mongoengine.connect(db="test_db",
mongo_client_class=montydb.MontyClient,
repository=":memory:")
... |
New version released, closing this. Thanks and sorry for the long wait on this one. |
* lmdb: jnwatson/py-lmdb#352 * mongoengine: #64 and that mongoengine PR has been merged and released, does not have to install from git anymore.
Montydb with the sqlite backend provides multi-process operation, at least in my initial trials with just 2 processes writing to the database simultaneously. This is clearly an advantage over mongita, which also provides a file/mem clone of pyMongodb; however, doesn't provide multi-process support. But mongitadb does support Mongoengine which was achieved recently.
Has anyone been able to use Montydb with Mongoengine?
The text was updated successfully, but these errors were encountered: