Skip to content

Commit

Permalink
added index
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Troisi committed Nov 29, 2024
1 parent fef942f commit 1aa2b28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ 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 })

// 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 1aa2b28

Please sign in to comment.