mongodb/mongo-python-driver — pull request #138 by techiev2 (2012-08-26 10:29:54+00:00)
Title: Added a lookup in DBRef dumping to pull Reference fields' data

A personal use case with dumping to JSON requiring reference fields from a specific collection. Creating custom data dicts with such data is marginally costlier than a lookup internally.

Assuming a collection referencing 2-3 other collections in addition to the lookups that would be required to generate the JSON on dump, the dict extend overhead seems significantly higher. Appears that allowing the user to specify a True arg for looking up is better