Update operation includes multiple where statements for the same fields #16864
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: performance/queries
topic: postgresql
topic: $transaction
Related to .$transaction(...) Client API
Milestone
Bug description
When triggering the update on the prisma model inside an transaction, it will run 3 queries where only 2 should be necessary. And the update query contains multiple where statements for the same field
Returned queries from log
How to reproduce
Expected behavior
When update is triggered i would expect 2 queries to have been executed. And the update query to only contain the where statement provided
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: