Skip to content

Commit 001db61

Browse files
max poll size set
1 parent 1df9451 commit 001db61

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/lib/mongoose.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export async function connectToDatabase() {
2525
cached.promise = mongoose.connect(MONGODB_URI, {
2626
maxConnecting: 2,
2727
bufferCommands: false,
28+
maxPoolSize: 10,
2829
}).then((mongoose) => {
2930
return mongoose;
3031
});

0 commit comments

Comments
 (0)