Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Depending on the database, the ORM may well add hints for the planner (of course it's theoretically possible to do that for manual queries as well, but it's usually verbose and database-specific). At a minimum the ORM has a model of what indices exist and so it can know which queries "should" be using an index, and may even have an internal model of how the query planner makes those decisions; of course ultimately if the query planner is perverse enough then even an automated system may not be able to get it to do the right thing.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: