redmine_git_hosting icon indicating copy to clipboard operation
redmine_git_hosting copied to clipboard

Performance problem: Redmine_git_hosting plugin interacts badly with redmine 1.2

Open kubitron opened this issue 13 years ago • 2 comments

Since redmine 1.2x, the fetch_changesets routine in repository/git.rb causes a huge number of saves to the repository model (which, in turn causes a huge number of calls to update_repositories). The result is unusable slowness under a number of circumstances.

I have a pull request fixes this and a couple of other cases of excessive update_repositories traffic. Alternatively, one could grab the "performance" branch from my fork:

github.com/kubitron/redmine_git_hosting

--KUBI--

kubitron avatar Nov 13 '11 02:11 kubitron

Hmmm. I have a large repository that is relatively slow. If this fixes the slowdown, that'd be really awesome. :)

ghost avatar Nov 13 '11 07:11 ghost

Note that I've added another commit to this branch which makes a slight fix and adds a DB index (make sure to run db:migrate_plugins afterwards).

kubitron avatar Nov 19 '11 19:11 kubitron