Bird
Raised Fist0

For bulk indexing a large number of small documents efficiently, which combination of settings is recommended?

hard🚀 Application Q8 of Q15
Elasticsearch - Performance and Scaling
For bulk indexing a large number of small documents efficiently, which combination of settings is recommended?
AUse the largest possible bulk size, keep refresh interval default, and disable compression
BUse moderate bulk sizes, disable refresh interval during indexing, and enable compression
CIndex documents one by one to avoid memory issues and enable immediate refresh
DUse small bulk sizes, enable frequent refresh, and disable compression
Step-by-Step Solution
Solution:
  1. Step 1: Consider bulk size

    Moderate bulk sizes balance memory use and throughput.
  2. Step 2: Adjust refresh interval

    Disabling or increasing refresh interval during bulk indexing improves speed.
  3. Step 3: Enable compression

    Compression reduces network bandwidth and improves performance.
  4. Final Answer:

    Use moderate bulk sizes, disable refresh interval during indexing, and enable compression -> Option B
  5. Quick Check:

    Balance bulk size and refresh for best throughput [OK]
Quick Trick: Moderate bulk size + disable refresh + compression [OK]
Common Mistakes:
MISTAKES
  • Using very large bulk sizes causing memory pressure
  • Not disabling refresh interval during bulk indexing
  • Indexing documents individually for large datasets

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes