QuestionQ243

VerifiedDevelopment and Ingestion

A data engineering team needs to ingest historical CSV files from a cloud storage location that already contains 50,000 existing files. They also expect new files to arrive continuously going forward. The team wants to use Auto Loader to incrementally process both the existing files and the new arrivals efficiently.

Which Auto Loader mode should the team configure for this use case?

Explanation

File notification mode configures cloud storage event and queue services so that Auto Loader is informed of new files as they arrive, rather than relying on repeated directory listing operations. This approach scales efficiently regardless of how many files already exist in the source location and continues to scale as new files are added over time, making it well suited for both the initial backlog of 50,000 files and ongoing continuous ingestion. Directory listing mode, by contrast, must scan the directory tree to detect changes and becomes comparatively less efficient at large file counts, and there is no need to switch modes mid-stream since file notification mode natively handles both the historical backfill and new arrivals.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!