mirror of
https://github.com/Comfy-Org/Comfy-PR.git
synced 2026-11-04 23:37:33 +00:00
[PR #153] [MERGED] Add MongoDB performance indexes to fix critical query slowdowns #152
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/Comfy-PR#152
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/Comfy-PR/pull/153
Author: @snomiao
Created: 2/3/2026
Status: ✅ Merged
Merged: 2/4/2026
Merged by: @comfy-pr-bot
Base:
main← Head:sno-db-optimize📝 Commits (5)
376d2b4Add MongoDB performance indexes to fix critical query slowdowns6b2b1a8Merge branch 'main' into sno-db-optimizee2ddb1aMerge branch 'main' into sno-db-optimize019759bAddress Copilot review commentsd27199dUpdate scripts/setup-performance-indexes.ts📊 Changes
7 files changed (+586 additions, -3 deletions)
View changed files
➕
PERFORMANCE-FIXES.md(+274 -0)📝
bun.lock(+3 -3)📝
lib/slack/SlackMsgs.ts(+10 -0)📝
package.json(+1 -0)➕
scripts/README.md(+147 -0)➕
scripts/setup-performance-indexes.ts(+131 -0)📝
src/CNRepos.ts(+20 -0)📄 Description
MongoDB Performance Advisor identified two critical missing indexes causing severe performance degradation:
This commit adds the missing compound indexes:
Expected improvements:
Also includes:
Indexes are created with background: true to avoid blocking operations.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.