mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-19 14:17:20 +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:
1 parent
a30457993d
commit
7aa9557905
12 files changed
+124
-61
No files matched your search
+3
-1
@@ -33,7 +33,9 @@ async function markErrorIfInFlight(repoId: string, message: string) {
|
||||
statusMessage: message || "preparation_failed",
|
||||
},
|
||||
}
|
||||
).exec();
|
||||
)
|
||||
.collation({ locale: "en", strength: 2 })
|
||||
.exec();
|
||||
} catch (e) {
|
||||
logger.error("markErrorIfInFlight failed", {
|
||||
...serializeError(e),
|
||||
|
||||
Reference in new issue
Block a user