Skip to content

Commit

Permalink
removed duplicated index
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Troisi committed Dec 2, 2024
1 parent 9f1e0b4 commit b700a23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,10 @@ RequestSchema.index({ id_project: 1, preflight: 1, createdAt: -1, status: 1 });
RequestSchema.index({ id_project: 1, preflight: 1, createdAt: 1 })
RequestSchema.index({ participants: 1, id_project: 1, createdAt: -1, status: 1 })
RequestSchema.index({ id_project: 1, "snapshot.lead.email": 1, createdAt: -1, status: 1 })
RequestSchema.index({ id_project: 1, participants: 1, "snapshot.agents.id_user": 1, createdAt: -1, status: 1 })
RequestSchema.index({ id_project: 1, createdAt: -1, status: 1 })
RequestSchema.index({ id_project: 1, participants: 1, "snapshot.agents.id_user": 1, createdAt: -1, status: 1 })

// ERROR DURING DEPLOY OF 2.10.27
//RequestSchema.index({ id_project: 1, participants: 1, "snapshot.agents.id_user": 1, createdAt: -1, status: 1 })

// cannot index parallel arrays [agents] [participants] {"driv
// RequestSchema.index({ id_project: 1, status: 1, preflight:1, participants:1, "agents.id_user":1, updatedAt: -1 }); //NN LO APPLICA
Expand Down

0 comments on commit b700a23

Please sign in to comment.