Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

performance.async

Avoid N+1 await patterns in map flows

Per-item awaits inside map-like flows often create avoidable latency and fan-out bottlenecks.

#Metadata

Rule ID
ts.performance.no-n-plus-one-await-in-map
Severity
high
Confidence
0.8
Languages
javascript, typescript
Presets
recommended, strict
Stability
stable
Applies to
block
Tags
performance, rules-catalog

#Why it matters

Per-item awaits inside map-like flows often create avoidable latency and fan-out bottlenecks.

#Remediation

Refactor this path to avoid repeated work in hot execution paths.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.performance.no-n-plus-one-await-in-map.rule.yaml.