Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
onDelete: Cascade slower with Generated PrismaClient (PlanetScale Adapter) - Prisma
P
Prisma
โข
5mo ago
โข
21 replies
Marius Nowak
onDelete: Cascade slower with Generated PrismaClient (PlanetScale Adapter)
Hello
Performance Issue with PlanetScale Adapter
: Generated PrismaClient vs Direct
@prisma
/client
Problem Description
We
're experiencing significant performance degradation with PlanetScale adapter when using the generated PrismaClient compared to the direct
@prisma/client
@prisma/client
for cascade delete operations
.
Context
-
Database
: PlanetScale
(MySQL
)
-
Prisma Version
: 6
.16
.3
-
Adapter
:
@prisma
/adapter
-planetscale 6
.16
.3
-
Operation
:
db.user.delete()
db.user.delete()
with cascade deletes
-
Environment
: Local test
(Vitest
) and CI
/CD
(GitHub Actions
)
Performance Comparison in local
-
Direct
@prisma
/client
:
~7 seconds
-
Generated PrismaClient
:
~12 seconds
Prisma
Join
The official Discord server of Prisma! Find us online at prisma.io
9,819
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
PrismaClient export from generated client.
P
Prisma / help-and-questions
10mo ago
Is something happened with PrismaClient and adapters?
P
Prisma / help-and-questions
2y ago
"PrismaClient" is not exported by "generated/client",
P
Prisma / help-and-questions
5w ago