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

Performance improvement for add team user when org has more than 1000 repositories #19227

Merged
merged 3 commits into from
Apr 1, 2022

Conversation

lunny
Copy link
Member

@lunny lunny commented Mar 27, 2022

Fix #19216

@lunny lunny added performance/speed performance issues with slow downs skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. backport/v1.16 labels Mar 27, 2022
@lunny lunny added this to the 1.17.0 milestone Mar 27, 2022
@lunny lunny added the pr/wip This PR is not ready for review label Mar 27, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Mar 29, 2022
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 31, 2022
@6543
Copy link
Member

6543 commented Mar 31, 2022

@lunny I think we can merge this ... so we have at least a better addUserToTeam.... but long term the crafted builder.Conditions should be returned by a func that can be used everywhere ....

tldr: we should focus on making more builder constrains and use them instead of filter in for loops at go code ...

@lunny lunny force-pushed the lunny/performance_add_team_user branch from f5b96d2 to 2cc688f Compare April 1, 2022 01:29
@lunny lunny removed pr/wip This PR is not ready for review skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Apr 1, 2022
@lunny
Copy link
Member Author

lunny commented Apr 1, 2022

make L-G-T-M work.

@lunny lunny merged commit 3a73645 into go-gitea:main Apr 1, 2022
@lunny lunny deleted the lunny/performance_add_team_user branch April 1, 2022 01:54
lunny added a commit to lunny/gitea that referenced this pull request Apr 1, 2022
… repositories (go-gitea#19227)

* performance improvement for add team user when org has more than 1000 repositories

* Fix bug

* Fix bug
@lunny lunny added backport/done All backports for this PR have been created backport/v1.16 labels Apr 1, 2022
zjjhot added a commit to zjjhot/gitea that referenced this pull request Apr 1, 2022
* giteaoffical/main:
  Fix broken of team create (go-gitea#19288)
  Remove `git.Command.Run` and `git.Command.RunInDir*` (go-gitea#19280)
  Performance improvement for add team user when org has more than 1000 repositories (go-gitea#19227)
  [skip ci] Updated translations via Crowdin
  Update JS dependencies (go-gitea#19281)
  Fix container download counter (go-gitea#19287)
  go.mod: update kevinburke/ssh_config to v1.2.0 (go-gitea#19286)
  Fix global packages enabled avaiable (go-gitea#19276)
  Add Goroutine stack inspector to admin/monitor (go-gitea#19207)
  Move checks for pulls before merge into own function (go-gitea#19271)
  Restore user autoregistration with email addresses (go-gitea#19261)
  Improve sync performance for pull-mirrors (go-gitea#19125)
  Refactor `git.Command.Run*`, introduce `RunWithContextString` and `RunWithContextBytes` (go-gitea#19266)
  Move reaction to models/issues/ (go-gitea#19264)
lafriks pushed a commit that referenced this pull request Apr 1, 2022
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. performance/speed performance issues with slow downs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slow performance (30+ seconds) when adding user to a group in large organization
4 participants