Redmine/app/models/repository
Toshi MARUYAMA 999a4ba30d scm: git: performance improvements in fetching revisions (#8857, #9472)
Parse a revision for a given branch,
just if we haven't parsed it for any branches before.
Moved the db check to for existing revisions into a grouped search.
Search for many revisions at once: this reduces db load.
Revisions are grouped into sets of 100.
This is to improve memory consumption.
There will be just one query instead of each 100.
The above two methods significantly increase parsing speed.
Test case was a git repo with 6000+ commits on a master branch,
and several other branches originating for master.
Speed improved from 1.4h to 18min.

Contributed by Gergely Fábián.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9144 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-07 07:56:15 +00:00
..
bazaar.rb Rails3: scm: bazaar: use .to_s for overriding human_attribute_name parameter 2012-02-24 14:57:52 +00:00
cvs.rb Rails 3.1 compatibility (order declared on association takes precedence). 2012-02-26 13:05:19 +00:00
darcs.rb Rails3: scm: darcs: use .to_s for overriding human_attribute_name parameter 2012-02-24 14:58:43 +00:00
filesystem.rb Rails3: scm: filesystem: use .to_s for overriding human_attribute_name parameter 2012-02-24 14:59:06 +00:00
git.rb scm: git: performance improvements in fetching revisions (#8857, #9472) 2012-03-07 07:56:15 +00:00
mercurial.rb Rails3: scm: mercurial: use .to_s for overriding human_attribute_name parameter 2012-02-24 14:59:54 +00:00
subversion.rb scm: subversion: code clean up model. 2011-05-12 07:15:39 +00:00