Skip to content

Commit e45ab87

Browse files
max connection pool increase
1 parent ceb8802 commit e45ab87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/mongoose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function connectToDatabase() {
2323
if (cached && !cached.promise) {
2424
const opts = {
2525
bufferCommands: false,
26-
maxConnectionPoolSize: 2,
26+
maxConnectionPoolSize: 20,
2727
};
2828
cached.promise = mongoose.connect(MONGODB_URI, opts).then((mongoose) => {
2929
return mongoose;

0 commit comments

Comments
 (0)