select vs query? (Drizzle)
I am building my first production application with Drizzle and I am loving it. But one thing that is not clear to is when to use query vs select. Are there performance implications and I want to know the differences in behavior.
5 Replies
query is a nicer way to do queries
is you select the exactly the same thing the performace is the same
akin to prisma queries
with select you can do queries that aren't possible with query
query is the general usage of querying the db
with select with get a more granular and hand-written sql, but you need to "change the shape" of data later