Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-81

Cache results for info iterators that decorate a Cursor

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.0
    • Affects Version/s: 0.2.0
    • Component/s: None
    • Labels:
      None

      Some of the legacy info iterators operate on inline results, which mean they can be rewound and counted multiple times. The same is not true for the iterators that wrap a Cursor (be it a command cursor or query cursor on a system collection). Using a CachingIterator (or something similar) when necessary would keep this consistent.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: