Steve Loughran created SPARK-24280:
--------------------------------------
Summary: Speed up indexing of files in object stores by using
listFiles(path, recursive=true)
Key: SPARK-24280
URL: https://issues.apache.org/jira/browse/SPARK-24280
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 2.3.0
Reporter: Steve Loughran
Object stores which mock directory structures can have awful performance when a
treewalk is executed on them. The {{FileSystem.listFiles(path,
recursive=true)}} call can reduce this overhead to ~ O(1) by doing bulk paged
listing of all files under a path. For filesystems without this operation, the
treewalk is implemented behind the scenes: no cost compared to today's code,
just a simplification
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]