MongoDB Error 292: Sort exceeded memory limit of 104857600 bytes (100 MB)
In-memory sort ran without a supporting index and without allowDiskUse.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.0.0
Identifier: MongoDB Error 292: Sort exceeded memory limit of 104857600 bytes (100 MB)
Platform: MongoDB
Interactive Diagnostic Checklist
Safe Diagnostic Command:
db.collection.find(...).sort(...).explain("executionStats")Technical Explanation
In-memory sort ran without a supporting index and without allowDiskUse. Verified technical resolution: Create a compound index matching filter + sort keys rather than relying on disk sorts.
Worked Examples
- Diagnostic check: db.collection.find(...).sort(...).explain("executionStats")
Limitations & Assumptions
- Confirm exact software version and execution layer before applying configuration changes in production.
Source References & Verification
Resource ID: err-mongo-sort-memory-limit-292 · Independently verified: 2026-11-25