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

Use IterateBufferSize whilst querying repositories during adoption check (#19140) #19160

Merged
merged 1 commit into from
Mar 22, 2022

Commits on Mar 21, 2022

  1. Use IterateBufferSize whilst querying repositories during adoption ch…

    …eck (go-gitea#19140)
    
    Backport go-gitea#19140
    
    The adoption page checks directories to see if they are repositories by querying the
    db on a per user basis. This can lead to problems if a user has a large number of
    repositories or putative repositories.
    
    This PR changes the buffering to check the db in IterataeBufferSize batches instead.
    
    Fix go-gitea#19137
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Mar 21, 2022
    Configuration menu
    Copy the full SHA
    534551e View commit details
    Browse the repository at this point in the history