#Slow Prisma query speeds

13 messages · Page 1 of 1 (latest)

ornate palm
#

Hey! I'm using Prisma as my ORM. Recently Prisma was taking my longer than usual on Railway (it was working fine on local development environment, with the exact same database). I ran a test to compare the query speed and turns out that it took ~800ms to complete a simple createMany Prisma query. Whereas, it 100ms on local development environment.

The possible explanation for such behavior is network latency, but is there any way to reduce the time?

main ospreyBOT
#

Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.

#

No project ID was provided. Closing thread.

ornate palm
#

d5eccacc-fc95-4f68-90bc-f8f04565d014

sweet wadi
#

wheres your db located

ornate palm
sweet wadi
#

that will be why

#

railways infra is hosted in the usa

ornate palm
sweet wadi
#

Ye hopefully

ornate palm
#

gotcha ty!

brave grail
#

may be a bit longer, but it’s in progress