"ORMs tend to optimise for flexibility over performance", this is one of the reasons that when the response times of an endpoint are higher, it is better to look for the queries executed, their frequencies and performance. Most of the times the ORM implementation is the culprit and changing that to a plain SQL query that is optimised does a lot of good.

further reading - https://alpha.app.learningpaths.io/#/highlights/public/5bb5bb5fa3664d73e323afdf/highlight/60f598efff36a103e7b18cf7

Referenced in:

All notes