skip/limit not respected by count

XMLWordPrintableJSON

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

      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
              Reporter:
              Oleg Pudeyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: