Hacker News new | ask | show | jobs
by prakhunov 2641 days ago
For any slow performing query you can always log the raw sql that is generated and run a normal explain like always.

You should also have database profiling tools in your disposal at all times, regardless if you use an ORM or just raw SQL.

ORMs are great when used sparingly and properly. For a bunch of normal crud operations they are great because they get rid of a lot of boilerplate code.

Also as with any ORM you can always drop down to raw sql in the situations that require it.