-
Type:
Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
After debugging MONGOID-2761, I realize that has_and_belongs_to_many were querying the DB twice with the same selector.
When there was a many to many, and the target was not loaded and target.first was called, _unloaded was calling the db twice in order to load.