Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1977

Eager loading queries associations without results

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      I noticed that eager loading does unnecessary queries if the initial query has no results. The associations should only be queried if there are foreign keys from the initial query result.

            Assignee:
            Unassigned Unassigned
            Reporter:
            fbjork Fredrik Björk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: