You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this library provide external connection polling/management functionality?
On prisma: [https://www.prisma.io/docs/data-platform/data-proxy#connection-pooling-and-connection-management](data proxy docs):
Data Proxy provides connection pooling so that your application can reuse active connections and never exhaust the maximum number of connections that your database allows.
Connection pooling with the Data Proxy utilizes orchestrated Prisma query engine technology to open, maintain, and close connection pools. It helps applications load-balance and scale database requests based on demand.
A Data Proxy connection pool maintains active database connections and ensures that an application reuses them when new requests come in.
After a quick look through the code, I don't see anything explicit about connection pooling/management, but perhaps this is handled under the hood?
import{ApolloServer}from'@apollo/server';import{startStandaloneServer}from'@apollo/server/standalone';importgqlfrom'graphql-tag';consttypeDefs=gql` // types base on Prisma Schema type Query { me: User } type User { id: ID! username: String }`;constresolvers={Query: {me(){return{id: '1',username: '@ava'};// Use Prisam Client to query db},},};constserver=newApolloServer({
typeDefs,
resolvers,});// Note the top-level await!const{ url }=awaitstartStandaloneServer(server);console.log(`🚀 Server ready at ${url}`);
Does this library provide external connection polling/management functionality?
On prisma: [https://www.prisma.io/docs/data-platform/data-proxy#connection-pooling-and-connection-management](data proxy docs):
After a quick look through the code, I don't see anything explicit about connection pooling/management, but perhaps this is handled under the hood?
If I self-host this prisma data proxy, will I have to use it in conjunction with https://www.prisma.io/docs/guides/performance-and-optimization/connection-management/configure-pg-bouncer as an external connection pooler?
The text was updated successfully, but these errors were encountered: