24 May 2010 Python, Django
django-mongokit is the project you want to use if you want to connect your Django project to your MongoDB
database via the pymongo Python wrapper. An alternative (dare I say competing alternative) is MongoEngine which is bridge between Django and straight to pymongo. The immediate difference you notice is the syntax. django-mongokit looks like MongoKit syntax and MongoEngine looks like Django ORM. They both accomplish pretty much the same thing. So, which one is fastest?
First of all, remember this? where I showed how django-mongokit sped past the SQL ORM like a lightning bullet. Well appears MongoEngine is even faster.
That's an average of 23% faster
for all three operations!
- More on What is "pythonic" 22 May 2010
- "Using MongoDB in your Django app - implications and benefits" 25 May 2010
- Related by category:
- How much faster is Redis at storing a blob of JSON compared to PostgreSQL? 28 September 2019 Python
- Best practice with retries with requests 19 April 2017 Python
- Fastest way to find out if a file exists in S3 (with boto3) 16 June 2017
- Interesting float/int casting in Python 25 April 2006 Python
- Fastest way to unzip a zip file in Python 31 January 2018 Python
- Related by keyword:
- Fastest database for Tornado 09 October 2013
- Mocking DBRefs in Mongoose and nodeunit 14 April 2011
- How I made my MongoDB based web app 10 times faster 21 October 2010
- Correction: running Django tests with MongoDB is NOT slow 30 May 2010
- Persistent caching with fire-and-forget updates 14 December 2011