You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf: cap or warn when --json is used with unbounded --max-docs in scroll-search #211
When --json is active, es helpers scroll-search buffers all documents in memory to return a single JSON object. Since --max-docs defaults to Infinity then this could OOM on large indices.
The original NDJSON streaming path avoids this by writing each document to stdout immediately, but --json mode requires buffering by design
Options to consider:
Set a sensible default cap for --max-docs when --json is active (e.g. 10,000)
Emit a stderr warning when --json is combined with unbounded --max-docs
Both — warn and cap, with an explicit --max-docs Infinity to override
Activity