Rather simple update
does 6 queries
#2091
-
Hi, I'm using the following query to update a OneToOne relation: await userRepository.update({
where: { id: me.id },
data: {
credentials: {
update: this.buildCredentials(tokenRes),
},
},
}); with the following simplified schema:
Not counting
Complete Query Log
There also seems to be 2 duplicated queries with an unnecessary |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @JohnnyCrazy 👋 thanks a lot for raising this! It seems to me like this indeed can (and should) be optimized. For the Beta, we mainly focused on stability of Prisma Client, but we certainly have lots of performance improvements on our list that we'll talk through in the upcoming weeks and months. Would be great if you could create an issue for this to make sure it's persisted 🙂 |
Beta Was this translation helpful? Give feedback.
-
Will do today, sorry for the delay 👍 |
Beta Was this translation helpful? Give feedback.
Hey @JohnnyCrazy 👋 thanks a lot for raising this! It seems to me like this indeed can (and should) be optimized. For the Beta, we mainly focused on stability of Prisma Client, but we certainly have lots of performance improvements on our list that we'll talk through in the upcoming weeks and months.
Would be great if you could create an issue for this to make sure it's persisted 🙂