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

Use exists? instead of count when number of documents is not needed

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Mongoid sometimes inquires whether documents exist, and it uses count for this. It would be more efficient to use exists?.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: