Skip to main content
InterviewHubPRO
Section Overview
Q30

Question 30 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

60%
Elasticsearch & Lucene (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

How do you optimize Elasticsearch for Maximum Indexing Throughput?

senior LevelMost AskedDatabases & SQL

In Simple Words:

  1. Use the _bulk API with batches of 5-15 MB.
  2. Increase index.refresh_interval from 1s to 30s or disable it (-1) during bulk ingestion.
  3. Set number_of_replicas to 0 during initial data loads, restoring replicas afterward.
  4. Increase indexing buffer size (indices.memory.index_buffer_size: 20%).
  5. Use auto-generated document IDs (avoids checking if an _id already exists in Lucene).