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

Start Page slow with large actions table #28707

Closed
realslacker opened this issue Jan 5, 2024 · 5 comments
Closed

Start Page slow with large actions table #28707

realslacker opened this issue Jan 5, 2024 · 5 comments
Labels

Comments

@realslacker
Copy link

Description

I am using Gitea v1.21.3, and my actions table is about 4.5G. I have 87 repos and belong to several orgs with additional repos.

When logging in the initial query to populate the start page takes 45 seconds to run. After adding two indexes the run time is down to 6.5 seconds... still a long time, but better.

New Indexes:

  1. user table created index on:
    • id
    • visibility
    • keep_activity_private
    • type
  2. team_user table created index on:
    • uid

Screenshots

image

Gitea Version

1.21.3

Can you reproduce the bug on the Gitea demo site?

No

Operating System

Windows 10

Browser Version

Firefix 121.0

@realslacker realslacker added topic/ui Change the appearance of the Gitea UI type/bug labels Jan 5, 2024
@techknowlogick
Copy link
Member

Thanks for this report. Which DB are you using? And, just because I'm curious, how many rows are in the actions table, what timespan do they cover, and is the significant number of rows in the actions table primarily due to mirrors updating or some other reason?

@techknowlogick techknowlogick removed the topic/ui Change the appearance of the Gitea UI label Jan 6, 2024
@lunny
Copy link
Member

lunny commented Jan 6, 2024

Maybe duplicated #28155 and resolved by #28546

@realslacker
Copy link
Author

@techknowlogick We are using MariaDB 11.1, there currently 6,140,941 records in the table. Records range from Sept 30 2019 to today. It looks like the majority of the operations are op_type = 5, which looks to me to be commits.

@lunny
Copy link
Member

lunny commented Jan 15, 2024

Since #28546 merged, I think this can be closed. Please feel free to reopen it if there is further information.

@lunny lunny closed this as completed Jan 15, 2024
Copy link

github-actions bot commented Mar 1, 2024

Automatically locked because of our CONTRIBUTING guidelines

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants