We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e45ab87 commit 30e3501Copy full SHA for 30e3501
1 file changed
src/lib/mongoose.ts
@@ -23,7 +23,7 @@ export async function connectToDatabase() {
23
if (cached && !cached.promise) {
24
const opts = {
25
bufferCommands: false,
26
- maxConnectionPoolSize: 20,
+ maxConnectionPoolSize: 100,
27
};
28
cached.promise = mongoose.connect(MONGODB_URI, opts).then((mongoose) => {
29
return mongoose;
0 commit comments