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

using only() and identity map

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

      I keep getting surprised by errors in my application because I have used the only() method to limit the fields returned, while later trying to query the same document.

      I think it is getting placed in the identity map, on the first query, and later retrieved out of the identity map. The issue is that when it is retrieved out of the identity map, it doesn't contain the fields I am needing.

      So my question is this: Would it be possible to, by default, skip the identity map for queries using only()?

            Assignee:
            Unassigned Unassigned
            Reporter:
            demersus demersus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: