-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Once PHPC-1050 is resolved, we should ensure that the ChangeStream iterator does not rewind its internal command cursor upon construction. The initial rewind will likely advance the cursor and check for an error, which is prone to issuing a getMore command if the first batch is empty (as it typically will be for new change streams). That getMore incurs an unexpected delay (one second by default), which would happen during the call to Collection::watch().
If we instead rely on users to invoke ChangeStream::rewind() when they begin iteration, we can defer that initial getMore to the beginning of iteration.
- depends on
-
PHPC-1050 Advancing a new command cursor to check for an error may invoke getMore
- Closed
- is related to
-
PHPLIB-276 Change stream support
- Closed