MEM001warningPro
unbounded-query
ORM query fetches all records without a LIMIT or pagination.
Applies to: JavaScript, Python, TypeScript
Why this matters
Loading an entire database table into memory will crash your server when the table grows. Always use LIMIT/take/pagination to cap how many rows you load. This is the #1 cause of OOM crashes on small cloud instances (App Runner, Heroku, Railway).
Catch it before it ships
pip install stablestack # or: npx stablestackstablestack # scans your project, MEM001 includedstablestack explain MEM001MEM001 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.
False positive in your codebase? Suppress a single line with # noqa: MEM001