Hey dear Prisma team, I am currently testing pris...
# orm-help
o
Hey dear Prisma team, I am currently testing prisma against typeorm with PostgreSQL. I am trying to use nested writes for Prisma. With local DB the query takes around 4s. When I run the same query with remote DB on AWS then it takes around 90s. Would you have any hint on why is it taking so long with remote DB. See more details on stackoverflow. Let me know if you need more details.
m
You can try setting
DEBUG="*"
in your environment. Then you can look at timestamps on print messages in cloudwatch to see what is taking so long. I’m doing this right now. Prisma seems to be adding 2-3 seconds to performing simple queries.
1
r
Add the
nApi
preview feature to decrease this.
o
@Ryan I am using prisma versioN: 3.1.1, according to this release statement the napi query enginer should be used by default
r
The latency shouldn’t be 90 seconds, as for the above logs that @Mischa has posted,
nApi
isn’t enabled.
Also I would like to check the logs and the query that you’re making.
o
@Ryan Those aren't my logs 🙂 Let me create an example for you
👍 1
m
As for me I am trying to test out prisma 3 but I have a small issue https://github.com/prisma/prisma/issues/9520 will post more results
👍 1
o
I've run this with debug=* but haven't seen anything suspicious there. You can check the output here. Also there is an example repo now that demonstrates the problem.
m
I just did some simple testing of my own on lambda/aurora: https://prisma.slack.com/archives/CCWDULGUW/p1633011980135600
1
o
@Ryan Any hints on what can be an issue here?
r
I will test this and get back to you. Also do you run the query locally pointing to the remote DB or is it on the deployed app?
🙏 1
o
I run it locally pointing to the remote DB
👍 1
r
And is the DB in the same region as you are?
o
@Ryan No its' not. But as mentioned above running the type of writing operation with typeorm works within 3 seconds. Based on this I don't think it's something to do with network
👍 1
@Ryan Sorry, is there any updates on this?