Vote #67746
完了git tab,browsing, very slow -- even after first time
0%
説明
I just installed Redmine for the first time this weekend, v1.0.0.
Got everything working via fastcgi + lighttpd, and my git repo is on local disk, and it's a bare repo.
The repo is about 1.2gb, about 55k commits:
# time git --bare log --all --pretty=oneline | wc -l 54779 git 1.31s user 0.67s system 79% cpu 2.484 total wc 0.02s user 0.45s system 18% cpu 2.483 total
It took about an hour the first time I hit the page. Subsequent times it takes about 1 minute:
Processing RepositoriesController#show (for 24.90.235.155 at 2010-08-02 01:01:43) [GET] Parameters: {"action"=>"show", "id"=>"project1", "controller"=>"repositories"} Rendering template within layouts/base Rendering repositories/show Completed in 56466ms (View: 534, DB: 54999) | 200 OK [https://XXX/projects/project1/repository]
I've tried the patch at #4773 (all the above is running with that patch).
I also tried a smaller, 87 commit repo, and it runs at an acceptable speed.
The number of files is large on the big repo as well, compared to the 87 commit repo. I an get you exact #s if you are interested.
Any ideas?
journals
As described at http://www.redmine.org/issues/4773#note-8,
redmine read commits from the last 7 days
source:/tags/1.0.0/app/models/repository/git.rb#L50
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Fixed in r5788.
--------------------------------------------------------------------------------
related_issues
relates,Closed,7146,Git adapter lost commits before 7 days from database latest changeset
relates,Closed,4549,Repository: git / view all revision fails with branches
relates,Closed,1435,slow display of 'repository' tab for huge repository (pagination problem?)
relates,Closed,6092,Truncate Git revision labels in Activity page/feed and allow configurable length
relates,New,7047,Git adapter very slow when a commit modifies a lot of files
relates,New,6566,Convert the git adapter to rugged
relates,Closed,8857,Git: Too long in fetching repositories after upgrade from 1.1 or new branch at first time
relates,Closed,9472,The git scm module causes an excess amount of DB traffic.