-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
First query updates all the token rows - it get's really slow. Instead do select update.
modules/actions/content/sync-erc4626-blocked-buffers.ts
await prisma.$transaction([
prisma.prismaToken.updateMany({
where: {
chain: chain,
},
data: { isBufferAllowed: true },
}),
prisma.prismaToken.updateMany({
where: {
chain: chain,
address: { in: blockedBuffersForErc4626Addresses },
},
data: { isBufferAllowed: false },
}),
]);Metadata
Metadata
Assignees
Labels
No labels