URL: http://groups.google.com/group/mongokit/browse_thread/thread/e391a2a2bc617fb

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

Comments

JulioFS

Hi Peter,

As a former fellow zopista myself also, I found myself at one point in need of a new python-based-web-framework fix, all this a couple of years back thinking that the seemingly natural continuation would undoubtedly be on to Djanjo, but I still needed something more pythonic, and found web2py, an excellent framework that in my opinion is the *true* progression from a Zope fellow, everything is python in web2py, including its own ORM, my last zope project, zforum.org, was rewritten from scratch in web2py in a period of literally 3/4 weeks into pyforum.org, what a breath of fresh air this was, check it out whenever you have a chance, cheers, Julio

Your email will never ever be published.

Previous:
Why I gave up on JQuery UI's autocomplete October 20, 2010 JavaScript
Next:
In Django, how much faster is it to aggregate? October 27, 2010 Django
Related by category:
A Python dict that can report which keys you did not use June 12, 2025 Python
Combining Django signals with in-memory LRU cache August 9, 2025 Python
Native connection pooling in Django 5 with PostgreSQL June 25, 2025 Python
Faster way to sum an integer series in Python August 28, 2025 Python
Related by keyword:
How to JSON schema validate 10x (or 100x) faster in Python November 4, 2018 Python
How much faster is Redis at storing a blob of JSON compared to PostgreSQL? September 28, 2019 Python, PostgreSQL, Redis
Msgpack vs JSON (with gzip) December 19, 2017 Python, Web development
How slow is Node to Brotli decompress a file compared to not having to decompress? January 19, 2024 Linux, Node, macOS