Unbounded Query

AEM Cloud Service expert skill — handle an explicitly-unbounded query (`p.limit=-1` predicate or JCR `setLimit(-1)`): bound it when capping is provably safe, otherwise flag it for human pagination. Use for "bound my query", "unbounded query", "query causing OOM", or a scan that flags `p.limit=-1`. Top CSO OOM cause: an unbounded result set traversed in a loop fills the heap and saturates the instance. The analyzer locates the explicit markers; the recipe triages each by how the result is consumed — single-result → 1, already-bounded list → N, iterate-all on the request path → escalate. Never silently cap a result the caller reads in full.

Adobe Updated 142 repo stars

File contents

adobe/skills/tree/main/plugins/aem/cloud-service/skills/code-assessment/unbounded-query commit 370f1f6413

Frequently asked questions

npx skillmds@latest add adobe/unbounded-query-2