[FIX] Performance issues when using new Oplog implementation (#19181)

Co-authored-by: Diego Sampaio <chinello@gmail.com>
pull/18051/merge
Rodrigo Nascimento 5 years ago committed by GitHub
parent 379048074a
commit ce1f4a1ff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/models/server/models/_oplogHandle.ts
  2. 8
      mongodb.aug.d.ts

@ -105,7 +105,7 @@ class OplogHandle {
this.stream = oplogCollection.find(oplogSelector, {
tailable: true,
// awaitData: true,
awaitData: true,
}).stream();
// Prevent warning about many listeners, we add 11

8
mongodb.aug.d.ts vendored

@ -0,0 +1,8 @@
import 'mongodb';
declare module 'mongodb' {
// eslint-disable-next-line @typescript-eslint/interface-name-prefix
export interface FindOneOptions<T> {
awaitData?: boolean;
}
}
Loading…
Cancel
Save