Interview practice question
ORM loads too much data
Backend Engineering · Relational Databases · Intermediate
An endpoint loads users with the ORM and is slow and memory-heavy, though it only needs names and emails. What is going on?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- ORM loads full entities and relations.
- Select only needed columns.
- Avoid eager loading unneeded relations.
- Pagination.
- Check generated SQL.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.