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

skip/limit not respected by count

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Query

      The skip and limit constraints appear to not be respected by count and count_documents methods:

      irb(main):002:0> a['foo'].find.skip(4).count
      => 10
      irb(main):003:0> a['foo'].find.count
      => 10
      irb(main):004:0> a['foo'].find.limit(5).count
      => 10
      irb(main):005:0> a['foo'].find.limit(5).count_documents
      => 10
      irb(main):006:0> a['foo'].find.skip(4).count_documents
      => 10
      

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

              Created:
              Updated:
              Resolved: