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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Works as Designed
    • None
    • None
    • None
    • None

    Description

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

      Attachments

        Issue Links

          Activity

            People

              oleg.pudeyev@mongodb.com Oleg Pudeyev
              oleg.pudeyev@mongodb.com Oleg Pudeyev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: