Slow API
Hello! When I try try create an organization and update it immediately, the update either doesn't run at all or it takes about 20 seconds. What is the reason for this slowdown?
prisma.$transactiongetSession function being slow on my end, since having it in the first place slows things down dramaticallytoken field in your session tableprisma.$transactiontokenconst org = await auth.api.createOrganization({
headers,
body: {
name: tempOrgId,
slug: tempOrgId,
},
})
await auth.api.updateOrganization({
headers: request.headers,
body: {
data: {
name: orgId,
slug: orgId,
},
},
})prismaAdapter(prisma, {
provider: 'postgresql',
}),