Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1028

Possible performance regression in `#find` (compared to 1.8)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.0
    • Affects Version/s: 2.1.0
    • Component/s: None

      Hello.

      We've noticed performance regressions when upgrading from 1.8.2 to 2.1.0rc0. The response time of a key transaction increased by ~30ms.

      The difference between the code is that `#find_one` (which was available in 1.8) was converted to `find().first` for 2.1.

      The scripts used along with the results can be found at https://gist.github.com/agis-/263a76a3fc443a8973de.

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            agis Agis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: