If I upgrade from prisma 3.x to 4.x will it stop p...
# prisma-client
r
If I upgrade from prisma 3.x to 4.x will it stop performing wasted queries to get the results of inserts?
👀 1
✅ 1
j
Could you give an example?
r
Hi @Robert Grimes 👋 Can you please elaborate on what you mean by wated queries?
r
Right now every time you call
model.create
it returns the
id
column and then does a second select on the table using the returned
id
, if you wanted the column data you could easily return it as part of the original insert call
But I'm on version 3
r
If i understand you correctly, then prisma 4 doesn't perform wasted queries.
r
Cool