corwinjoy opened a new issue, #24:
URL: https://github.com/apache/arrow-rs-object-store/issues/24

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for 
this feature, in addition to  the *what*)
   -->
   
   We've encountered an issue when using `arrow-rs` via `DeltaLake`. Many 
times, delta files will hold dozens of parquet files in a log directory. To 
select recent files, the function `LocalFileSystem::list_with_offset` is 
called. This does not have an efficient implementation, instead, the entire 
directory is scanned in our example resulting in >100,000 statx system calls, 
several times for each file in the _delta_log subdirectory. This is terribly 
slow for our use case.
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   Upgrade `LocalFileSystem::list_with_offset` to filter the files and cut the 
number of statx calls. We have a simple PR (to follow) which does this.
   For our use case, it cuts the time to open the delta table from 35 seconds 
to 4 seconds.
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   There are likely fancier ways to filter these files and cut the number of 
statx calls, but a simple pre-filter like what we have done in the associated 
PR is quite effective. In general, it would be nice to have a more optimized 
LocalFileSystem implementation.
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   


-- 
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