Relative Content

Tag Archive for pythonpymongo

Accessing raw cursor data in pymongo

I was finding that pymongo was seemingly slower than I would expect for such a simple query, so I inspected the returned cursor object and found it contains the data I need. I then iterated over this value (method 3) and found it performs at least 10x faster than method 1 and 2 (which are the same).