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

Logging issue in Collection#find_one

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.4.0
    • Affects Version/s: None
    • Component/s: None

      Then calling find_one, it merge :limit => -1 option to selector. So limit options don't appear in log.

      This confusing, then during debugging session you get some thing like this in log:
      MONGODB my_test['managers'].find({})

      The first idea is why I fetch all records??? And only in profiler you can see, that actually only one record was fetched.

            Assignee:
            kbanker Kyle Banker
            Reporter:
            gregory-m Gregory Man
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: