mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Noticed a SQL in gitea.com has a bigger load. It seems both `is_pull` and `pin_order` are not indexed columns in the database. ```SQL SELECT `id`, `repo_id`, `index`, `poster_id`, `original_author`, `original_author_id`, `name`, `content`, `content_version`, `milestone_id`, `priority`, `is_closed`, `is_pull`, `num_comments`, `ref`, `pin_order`, `deadline_unix`, `created_unix`, `updated_unix`, `closed_unix`, `is_locked`, `time_estimate` FROM `issue` WHERE (repo_id =?) AND (is_pull = 0) AND (pin_order > 0) ORDER BY pin_order ``` I came across a comment https://github.com/go-gitea/gitea/pull/24406#issuecomment-1527747296 from @delvh , which presents a more reasonable approach. Based on this, this PR will migrate all issue and pull request pin data from the `issue` table to the `issue_pin` table. This change benefits larger Gitea instances by improving scalability and performance. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> |
1 week ago | |
---|---|---|
.. | ||
access.yml | 1 month ago | |
access_token.yml | 1 year ago | |
action.yml | 2 years ago | |
action_artifact.yml | 1 week ago | |
action_run.yml | 2 months ago | |
action_run_job.yml | 2 months ago | |
action_runner_token.yml | 1 year ago | |
action_task.yml | 2 months ago | |
action_task_output.yml | 2 months ago | |
attachment.yml | 1 year ago | |
branch.yml | 2 months ago | |
collaboration.yml | 12 months ago | |
comment.yml | 5 months ago | |
commit_status.yml | 8 years ago | |
commit_status_index.yml | 1 year ago | |
deploy_key.yml | 7 years ago | |
email_address.yml | 1 year ago | |
external_login_user.yml | 3 years ago | |
follow.yml | 2 years ago | |
gpg_key.yml | 2 years ago | |
gpg_key_import.yml | 6 years ago | |
hook_task.yml | 12 months ago | |
issue.yml | 1 year ago | |
issue_assignees.yml | 12 months ago | |
issue_index.yml | 9 months ago | |
issue_label.yml | 5 years ago | |
issue_pin.yml | 1 week ago | |
issue_user.yml | 4 years ago | |
issue_watch.yml | 5 years ago | |
label.yml | 2 months ago | |
lfs_meta_object.yml | 3 months ago | |
login_source.yml | 7 years ago | |
milestone.yml | 2 years ago | |
mirror.yml | 2 years ago | |
notice.yml | 8 years ago | |
notification.yml | 5 years ago | |
oauth2_application.yml | 2 years ago | |
oauth2_authorization_code.yml | 2 years ago | |
oauth2_grant.yml | 2 years ago | |
org_user.yml | 3 months ago | |
project.yml | 11 months ago | |
project_board.yml | 11 months ago | |
project_issue.yml | 5 years ago | |
protected_branch.yml | 8 years ago | |
protected_tag.yml | 2 months ago | |
public_key.yml | 1 year ago | |
pull_request.yml | 10 months ago | |
reaction.yml | 1 year ago | |
release.yml | 1 year ago | |
renamed_branch.yml | 3 years ago | |
repo_archiver.yml | 4 years ago | |
repo_indexer_status.yml | 7 years ago | |
repo_license.yml | 5 months ago | |
repo_redirect.yml | 8 years ago | |
repo_topic.yml | 6 years ago | |
repo_transfer.yml | 12 months ago | |
repo_unit.yml | 5 months ago | |
repository.yml | 4 weeks ago | |
review.yml | 3 months ago | |
star.yml | 12 months ago | |
stopwatch.yml | 5 years ago | |
system_setting.yml | 3 months ago | |
team.yml | 9 months ago | |
team_repo.yml | 1 year ago | |
team_unit.yml | 9 months ago | |
team_user.yml | 9 months ago | |
topic.yml | 2 years ago | |
tracked_time.yml | 5 years ago | |
two_factor.yml | 6 years ago | |
user.yml | 4 weeks ago | |
user_blocking.yml | 12 months ago | |
user_open_id.yml | 8 years ago | |
user_redirect.yml | 4 years ago | |
watch.yml | 12 months ago | |
webauthn_credential.yml | 2 years ago | |
webhook.yml | 1 month ago |