mongoid/mongoid — Issue #1465: Mongoid multiple calls to ['system.namespaces'].find({}) in the same request
Author: hartator
Created: 2011-12-01 11:14:24+00:00
State: open

Hi there,

I may have found a bug in Mongoid when it handles more than one collection in the same request. I noticed that it calls `MONGODB ugs['system.namespaces'].find({})` each time a model is loaded even if it's in the same request.

Is there a way to make Mongoid do only one `MONGODB ugs['system.namespaces'].find({})` per request, or to eager load a few models in the same time or it's simply a bug ?

Anyway, thanks for great software!