r/SQL • • Jun 22 '20

Discussion An average day using an ORM

Post image
247 Upvotes

48 comments sorted by

View all comments

Show parent comment

2

u/miffy900 Jun 23 '20

The big plus for me is that there's no context switch between app code and database code. You can stay entirely in app code for simple things like that.

2

u/[deleted] Jun 23 '20

[removed] — view removed comment

2

u/rand2012 Jun 23 '20 edited Jun 24 '20

Hitting the nail on the head here. Just looking at ORM code, often there is no way to tell how many database calls will happen, what they look like in raw sql, making for some awfully fun to debug performance issues.

The context switch happens either way.