Parallelize independent data fetches with Promise.all
Use Promise.all for independent Supabase queries instead of sequential await chains.
Why This Matters
Sequential awaits create a waterfall — each query waits for the previous one to complete. Three 200ms queries take 600ms sequentially but only 200ms in parallel.
Tags
nextjssupabasedata-fetching
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 3+ others. Get actionable feedback before code ships.