ericpaulbishop / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
185 stars 37 forks source link

Performance problem: Redmine_git_hosting plugin interacts badly with redmine 1.2 #119

Open kubitron opened 12 years ago

kubitron commented 12 years ago

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--

ghost commented 12 years ago

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

kubitron commented 12 years ago

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).