-
ProblemMongodb has been put Generally Available (GA) a while ago, But there are so severe performance problems with that it may be devastating for the stability of your application if you use it in production. and many more. I and probably many more love prisma and were happy that it supports mongodb as well. However there is no indication that such severe problems exists. Mongodb beeing in Generally Available (GA) indicates a maturity level that it does not have. Suggested solutionWhile I am currently stuck and can't switch easily to something else like mongose, we should at least avoid that new developers use prisma for mongodb for productive apps. So its best to flag it realistically as either preview or early-access and highlight the current limitations it has on the documentation https://www.prisma.io/docs/orm/more/releases#early-access Also its important to inform mongodb itself about this as they also promote prisma on their official website: https://cloud.mongodb.com/ecosystem/prisma AlternativesOf course we all would be much happier if those problems would have been fixed in the first place. Some of them were known for a long time and well documented. It has been made clear by the prisma team that mongodb has no priority. It was not tackled here https://prismaio.notion.site/Optimize-Prisma-Client-Query-Performance-68caf089581e4d07ac154dd34ad73639 The team and the business defines the priority, that is fine. But please be realistic about what it can do and what it can't. Additional contextOn a personal level i highly recommend to fix the underlying issues ASAP, because I think some would be rather trivial to fix. The damage this does to the reputation of both prisma and mongodb should not be underestimated. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
thx for migrating to discussion, I think its the better place. And seeing at least some reactions shows me that i am not alone. just to be clear: I don't want to talk badly about prisma or the mongo integration. I think its a great achievement per se. But I strongly think something needs to be done immediatly. When fixing is not an option right now, beeing transparent about the caveats and limitations is the next best thing to do |
Beta Was this translation helpful? Give feedback.
-
We ran into similar problems with highly unexpected COLLSCANs caused by prisma-mongo in production. Prisma is fantastic for Postgres, and I highly respect and admire the work that the Prisma team is doing. I think labeling prisma-mongo as GA runs the risk of tarnishing the reputation of the entire Prisma project, and would strongly recommend the team to move it back into "Early Access". |
Beta Was this translation helpful? Give feedback.
-
seeing the recent activity in the repo for mongodb issues and even mrs gives me hope that prisma did not abandon mongodb! Adding a test for colscans is an important step: #24071 |
Beta Was this translation helpful? Give feedback.
-
Some good news 🙌🏼 Our release from this week, 5.14.0, significantly improved the performance of certain queries when using MongoDB, specifically ones with If you still encounter any performance problems with Prisma and MongoDB, please open a new GitHub bug issue. Thanks! See release notes at https://github.com/prisma/prisma/releases/tag/5.14.0 |
Beta Was this translation helpful? Give feedback.
Some good news 🙌🏼
Our release from this week, 5.14.0, significantly improved the performance of certain queries when using MongoDB, specifically ones with
include
andin
should now not cause a collection scan any more and use an index instead to find the correct documents.If you still encounter any performance problems with Prisma and MongoDB, please open a new GitHub bug issue. Thanks!
See release notes at https://github.com/prisma/prisma/releases/tag/5.14.0