I've just started using Prisma with Mongo, and I'm...
# orm-help
m
I've just started using Prisma with Mongo, and I'm already having issues. It seems my queries are taking a really long time. I have GoogleOAuth through Passport, and I run the
.upsert()
function to check if a user exists, otherwise I create one. However it appears this query is taking upwards of 30 seconds, meaning the user is stuck on the OAuth consent screen for about that long waiting to be logged in. Any reason or fix for this?
l
Where are you running this?
n
Hey Max 👋 sorry to hear about this! 30 seconds indeed sounds like way too much for a query — though performance of course always depends on the exact query and data set but it sounds like your query is not very complex. Our team is very eager to resolve these kinds of performance issues as long as MongoDB is still running in Preview, so it would be really helpful for us if you could open a new issue where you share more details about the problem (and ideally a reproduction that makes it easier for our engineers to look into this) 🙏
m
The server is just in my dev environment on localhost
Sure thing! I'll open an issue right now
🙏 1
Issue can now be found here
n
Thank you!