mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-03 17:40:38 +02:00
perf: cut MongoDB scans in repository workflows (#780)
* Add repository name index * Optimize repository file counts * Optimize MongoDB query workloads
This commit is contained in:
@@ -55,4 +55,7 @@ const RepositorySchema = new Schema({
|
||||
},
|
||||
});
|
||||
|
||||
RepositorySchema.index({ owners: 1 });
|
||||
RepositorySchema.index({ status: 1, endDate: 1 });
|
||||
|
||||
export default RepositorySchema;
|
||||
|
||||
Reference in New Issue
Block a user