⚡ Replace updates with updateManys when possible
Easy performance win to avoid triggering SELECT query after an UPDATE
This commit is contained in:
@@ -44,7 +44,7 @@ const updateResultVariables =
|
||||
].filter((variable) => isDefined(variable.value)) as VariableWithValue[]
|
||||
|
||||
if (result.id)
|
||||
await prisma.result.update({
|
||||
await prisma.result.updateMany({
|
||||
where: {
|
||||
id: result.id,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user