-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongoDB slow delete with onDelete: SetNull
#19169
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
domain/client
Issue in the "Client" domain: Prisma Client, Prisma Studio etc.
kind/bug
A reported bug.
topic: indexes
topic: mongodb
topic: performance/queries
topic: relationMode
formerly `referentialIntegrity`
topic: relations
Milestone
Comments
Jolg42
added
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
topic: indexes
domain/client
Issue in the "Client" domain: Prisma Client, Prisma Studio etc.
topic: mongodb
topic: performance/queries
topic: relations
labels
May 10, 2023
janpio
changed the title
MongoDB slow delete with onDelete: SetNull
MongoDB slow delete with May 17, 2023
onDelete: SetNull
This performance problem is fixed in Prisma 5.14.0 |
This was referenced Jun 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
domain/client
Issue in the "Client" domain: Prisma Client, Prisma Studio etc.
kind/bug
A reported bug.
topic: indexes
topic: mongodb
topic: performance/queries
topic: relationMode
formerly `referentialIntegrity`
topic: relations
Bug description
When having a schema with a 1:n relation where you delete the left side. It takes on big collections (>1.Mio documents) long time to delete the document (>1 minute).
How to reproduce
You generate a bad query to check the depending documents
There need to be a query which can use the normal index in mongodb like
db.Broadcast.find({productionId: ObjectId(\"5f913feb235d8600075e1797\")})
Expected behavior
No response
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: