dummy_collection.find().hint([('title', pymongo.ASCENDING)])
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
PyMongo doesn't support passing an index "name" for hint. You have to
pass the index spec. This works:dummy_collection.find().hint([('title', pymongo.ASCENDING)])