Skip to content
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

In users' dashboard, it's very slow to load action. #23101

Closed
lunny opened this issue Feb 24, 2023 · 2 comments
Closed

In users' dashboard, it's very slow to load action. #23101

lunny opened this issue Feb 24, 2023 · 2 comments
Labels
performance/speed performance issues with slow downs

Comments

@lunny
Copy link
Member

lunny commented Feb 24, 2023

Description

#19472 refined the indexes, now we have two indexes group. One is repo_id, user_id, is_deleted, another is "act_user_id", "repo_id", "created_unix", "user_id", "is_deleted". But the most frequent page is the dashboard, it will only be affected by user_id and is_deleted. So I think we should adjust the indexes again. We should add a new index user_id, is_deleted for user's dashboard.

Gitea Version

Latest

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

No response

How are you running Gitea?

self-hosted

Database

None

@lunny lunny added the performance/speed performance issues with slow downs label Feb 24, 2023
@rsq424
Copy link

rsq424 commented Mar 2, 2023

add new index
create index IDX_action_u_d_c on action (user_id asc, is_deleted asc, created_unix desc);

@lunny
Copy link
Member Author

lunny commented Mar 2, 2023

duplicated with #21611

@lunny lunny closed this as completed Mar 2, 2023
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
performance/speed performance issues with slow downs
Projects
None yet
Development

No branches or pull requests

2 participants