[IMPROVE] Add index for room's ts (#13726)

pull/13744/head
Diego Sampaio 6 years ago committed by GitHub
parent 246ff8a5d5
commit b57f20873a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/models/server/models/Rooms.js

@ -17,6 +17,7 @@ export class Rooms extends Base {
this.tryEnsureIndex({ 'tokenpass.tokens.token': 1 });
this.tryEnsureIndex({ open: 1 }, { sparse: 1 });
this.tryEnsureIndex({ departmentId: 1 }, { sparse: 1 });
this.tryEnsureIndex({ ts: 1 });
// threads
this.tryEnsureIndex({ prid: 1 });

Loading…
Cancel
Save