3 ms·
That's a fair point; on the other hand, aren't SQL queries themselves divorced from the actual data layer? Knowing whether the ORM issued one or two queries doe
by icebraining 10y ago
That's a fair point; on the other hand, aren't SQL queries themselves divorced from the actual data layer? Knowing whether the ORM issued one or two queries doesn't tell you if you're fetching data from disk or memory, whether it's making an index scan or full table scan, whether the join fits in working memory or will hit the disk, etc.
Isn't knowing what queries are issued giving you a false sense of knowledge about how the data is actually fetched?
And much the same way you can request a query plan, the ORM could provide the list of queries issued for a given piece of code.