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:
Thomas Durieux authored and GitHub committed 2026-08-20 12:29:26 +02:00
1 parent a30457993d
commit 7aa9557905
12 files changed
+124 -61

No files matched your search

@@ -14,7 +14,7 @@ const AnonymizedGistSchema = new Schema({
anonymizeDate: Date,
lastView: Date,
pageView: Number,
owner: Schema.Types.ObjectId,
owner: { type: Schema.Types.ObjectId, index: true },
conference: String,
source: {
gistId: String,