|
|
|
|
|
by ryanbrunner
1504 days ago
|
|
I'll use raw SQL (maybe not as an entire query, but something like a computed column) pretty often, for situations where I want to query things like "give me all foos with a count of bars related to them", or "give me a list of foos with the name of the latest related baz". Most ORMs would want to hydrate the graph of related objects to do that, or at least have multiple round trips to the DB server. |
|
That said.
This is where the knowing what's going on behind the scenes matters.