flokli commented on issue #6287:
URL: https://github.com/apache/arrow-rs/issues/6287#issuecomment-2304417544

   So apparently 
[`object_store::buffered::BufReader`](https://docs.rs/object_store/latest/object_store/buffered/struct.BufReader.html)
 might be the answer to this, at least it prevents long-running connections to 
the backend.
   
   I feel like the docstring of `into_stream()` should be extended to point it 
out that you might want to use `object_store::buffered::BufReader` instead.
   
   I'm not that happy yet `object_store::buffered::BufReader` doesn't do any 
"readahead", meaning we'd have to wait the summed up round-trip times whenever 
the buffer gets empty, but that's probably also tricky to do in the general 
case.
   
   I'm also not sure if the calls to `get_range` it does are actually retried, 
in case of temporary connectivity issues / rate-limiting.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to