Parallelize Database Queries #5

Closed
opened 2026-04-03 12:22:15 +02:00 by schreifuchs · 0 comments
Owner

Where: src/routes/akti/[aktiId]/+page.server.ts (load function)
Why: Queries are running sequentially.
Fix: Use Promise.all([ db.query.aktis.findFirst(...), db.query.ratings.findMany(...) ]) to run concurrently.

**Where:** `src/routes/akti/[aktiId]/+page.server.ts` (load function) **Why:** Queries are running sequentially. **Fix:** Use `Promise.all([ db.query.aktis.findFirst(...), db.query.ratings.findMany(...) ])` to run concurrently.
schreifuchs added the ai-generated label 2026-04-03 12:26:22 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: schreifuchs/aktiteil#5