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

'exists?' and 'first' caching.

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

      At the moment criteria caching works for to_a and count. I think, that for consistency it should also cache 'exists?' and 'first' requests. Also 'first' doesn't have to fire if 'to_a' is already cached and 'exists?' doesn't have to fire if 'to_a' or 'first' is already cached. Can this feature be implemented?

            Assignee:
            arthurnn Arthur Nogueira Neves
            Reporter:
            exoth Yuriy Trofimenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: