All Questions
Elasticsearch hard

Why is 'Point In Time' (PIT) generally preferred over the 'Scroll' API for long-running paginated exports in modern Elasticsearch?

  1. A Scroll requests are unencrypted, while PIT uses TLS by default.
  2. B Decoupled Context: PIT separates the 'frozen view' of the data from the searching logic. This prevents 'Search Context' timeouts and allows for more flexible sorting without locking the old segments as aggressively as Scroll.
  3. C Scroll can only return up to 100 documents per batch.
  4. D PIT uses the GPU for sorting, making it 50x faster than Scroll.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions