-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix the missing users in the subscriptions endpoint. #26797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the missing users in the subscriptions endpoint. #26797
Conversation
This reverts commit e44e0c3.
|
Could you optimized this query, The query plan. |
Co-authored-by: delvh <dev.lh@web.de>
Query Plan
|
…aiCandong/gitea into bugfix/Fix-missing-watcher-in-endpoint
@puni9869 I adjusted the order of the index fields of |
} | ||
// Drop the old index :(user_id,issue_id) | ||
// Then automatically created new index => (issue_id,user_id) | ||
return x.DropIndexes(new(IssueWatch)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create the new indexes?
Fix #26750
Formal description
For issue
cur_issue_id
of repocur_repo_id
, the following 4 sets exist for its related subscribed users:So, the final subscription list is$set_1 \cup set_3 \cup set_4 -set_2 $
Raw SQL
Query Plan