Swapnull
11/04/2020, 2:34 PMusers(first: 5) { uuid }
which just has t.crud.users()
can take 3 - 7 seconds.
We are using vercel serverless to deploy an Apollo Server.
What have people done to improve performance as this could end up a huge barrier.Ryan
11/04/2020, 2:41 PMprisma.$disconnect()
after every request
3. Keeping your DB in the same region as your app to reduce latency
4. Using a DB connection pooler like PgBouncer that would help with concurrent requests
We are also looking at perf considerations especially in serverless environments, but these would be the basic things to follow.Swapnull
11/04/2020, 2:44 PMRyan
11/04/2020, 2:52 PMSwapnull
11/04/2020, 3:02 PMSwapnull
11/04/2020, 3:03 PMRyan
11/04/2020, 3:11 PMRyan
11/05/2020, 7:30 AMSwapnull
11/05/2020, 8:25 AMRyan
11/05/2020, 8:30 AMJames Homer
11/05/2020, 11:56 AM