hmarr/mongoengine — Issue #400: Top level ReferenceFields forced earlier than intended?
Author: djziegler
Created: 2011-12-30 13:21:46+00:00
State: open

In BaseDocument.__init__, the "Assign default values to instance" loop also has the (possibly unintended) effect of forcing all top level reference fields (without batching). I discovered this while testing my simple caching reference field, and thought you might like to know. (this is not actually causing me problems - almost all of the extra dereferences are hitting my cache anyway).

Regards

David