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

Logging issue in Collection#find_one

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: