- Inspect GraphQL DataLoader batch functions; identify ineffective batching.
- Implement bulk-fetch model methods for DataLoader (payments, reviews, bookings/users if needed) to avoid per-id queries.
- Update
src/graphql/dataloaders/index.tsto use bulk-fetch methods and return results in input order. - Add a new migration that creates missing indexes on foreign keys and frequently-filtered/sorted columns.
- Verify code compiles logically (no builds/tests executed per instruction).
- Document expected N+1 reductions and indexing impact.
- Update TODO as steps are completed.