MongoKit is a Python wrapper on top of pymongo that adds structure and validation and some other bits and pieces. It's like an ORM but not for an SQL database but for a document store like MongoDB. It's a great piece of code because it's thin. It's very careful not to molly cuddle you and your access to the source. What I discovered was that I was doing an advanced query and with the results they we instantiated as class instances and later turned into JSON for the HTTP response. Bad idea. I don't need them to be objects really so with MongoKit it's possible to go straight to the source and that's what I did.
With few very simple changes I managed to make my restful API app almost 10 times faster!!
Read the whole story here
- Why I gave up on JQuery UI's autocomplete
20 October 2010
- In Django, how much faster is it to aggregate?
27 October 2010
- Related by Keyword:
- Fastest Redis configuration for Django
11 May 2017
- Cope with JSONDecodeError in requests.get().json() in Python 2 and 3
16 November 2016
02 August 2016
- Gzip rules the world of optimization, often
09 August 2014
- Migration of Postgres 9.2 to 9.3 with Homebrew and json_enhancements
30 April 2014
- Related by Text:
- How and why to use django-mongokit (aka. Django to MongoDB)
08 March 2010
- Optimization story involving something silly I call "dict+"
13 June 2011
- Speed test between django_mongokit and postgresql_psycopg2
09 March 2010
- mongoengine vs. django-mongokit
24 May 2010
- Custom Fields in IssueTrackerProduct documentation written
05 June 2009