Batch Update multiple rows.
Is there a way to do batch update for multiple queries using
update ... from
syntax ?
for example :
how to do this type of query for update.
I know there is another way by using case, but its not performant as this for large updates.3 Replies
Hello. This syntax is currently not supported in Drizzle.
You'll have to build the query with the
sql
operatormm, what if i use onConflictDoUpdate for batch updates.. how much would there be performance difference with native update...
just a curious question..
onConflictDoUpdate
is for inserting rows, fairly sure it's not made for batch updates
More specifically, onConflictDoUpdate
is for updating a record that already exists instead of inserting the record due to a unique constraint or primary key collision