SpinTheMic
Pro

Interview practice question

Auto Loader slow with millions of files

Data Engineering · Databricks · Intermediate

Auto Loader takes a long time each run because the input folder has millions of files. How do you improve it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Directory listing mode lists the whole path, slow for huge folders.
  • Switch to file notification mode using cloud queue services.
  • Or rely on incremental listing for lexically ordered paths.
  • Clean up or archive processed files.
  • Partitioned landing paths reduce listing scope.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics