feat: use connection pooling (#102)

This commit is contained in:
Tianzhou (天舟)
2023-05-19 23:26:11 +08:00
committed by GitHub
parent aa3f41d5fb
commit 1a86bc4d7f

View File

@ -10,8 +10,11 @@ generator client {
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
provider = "postgresql"
// Connection pooling URL
url = env("DATABASE_URL")
// Connection pooling is not supported by Prisma migrate yet. So need to use directUrl
directUrl = env("DATABASE_DIRECT_URL")
}
model Chat {