Coding task · NestJS course · Module 8: Caching and Performance

Practice: Query Optimization

Optimize database queries in the legions service.

Task

Add indexes and use select() instead of fetching all columns