pitrou commented on a change in pull request #7172:
URL: https://github.com/apache/arrow/pull/7172#discussion_r425165237
##########
File path: cpp/src/arrow/io/caching.cc
##########
@@ -171,7 +171,8 @@ Status ReadRangeCache::Cache(std::vector<ReadRange> ranges)
{
}
impl_->AddEntries(std::move(entries));
- return Status::OK();
+ // Prefetch immediately, regardless of executor availability, if possible
+ return impl_->file->WillNeed(ranges);
Review comment:
`ReadAsync` by default only queues the read for execution in a thread
pool. It doesn't necessarily issue the read immediately. So this might still be
useful, though perhaps only in uninteresting corner cases.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]