-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.2.0
-
Component/s: None
-
None
The implementation of PHPLIB-213 currently reinitializes the chunk iterator if the chunk offset would change by the seek operation. If the chunk offset does not change, we simply modify the buffer's offset (which applies to the current chunk's data).
When seeking to a previous chunk, we definitely need to reinitialize the chunk iterator (i.e. re-query and use a new cursor); however, seeking forwarding only requires that we advance the iterator forward. We should consider when it makes sense to re-query the database vs. advance, as it's likely more efficient to issue one new query rather than advance through multiple batches.
- depends on
-
PHPLIB-213 Support seeking and partial file retrieval for GridFS streams
- Closed