Redmine/app/models
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
..
repository scm: git: performance improvements in fetching revisions (#8857, #9472) 2012-03-07 07:56:15 +00:00
attachment.rb remove trailing white-spaces from app/models/attachment.rb 2012-02-26 10:16:09 +00:00
auth_source.rb Friendly response when the LDAP connection fails. 2012-02-19 18:13:46 +00:00
auth_source_ldap.rb Adds an optional LDAP filter (#1060). 2012-03-01 16:26:10 +00:00
board.rb Prevent mass-assignment when adding/updating a forum (#10390). 2012-03-06 21:36:28 +00:00
change.rb Rails3: model: replace deprecated 'before_validation' method at Change model 2011-09-21 13:56:16 +00:00
changeset.rb Fixed magic link in the note added when closing an issue by a commit from a subproject (#10284). 2012-02-20 21:58:57 +00:00
comment.rb Prevent mass-assignment when adding a news comment (#10390). 2012-03-06 18:48:47 +00:00
comment_observer.rb remove trailing white-spaces from app/models/comment_observer.rb. 2011-08-31 06:07:28 +00:00
custom_field.rb Use #reduce instead of #inject for getting the intersection of arrays. 2012-02-09 20:06:36 +00:00
custom_field_value.rb Extracts custom field values validation from CustomValue so that they can be validated globally from the customized object (#1189). 2012-01-28 11:16:58 +00:00
custom_value.rb Extracts custom field values validation from CustomValue so that they can be validated globally from the customized object (#1189). 2012-01-28 11:16:58 +00:00
document.rb Prevent mass-assignment when adding/updating a document (#10390). 2012-03-06 18:54:41 +00:00
document_category.rb remove trailing white-spaces from document category model source. 2011-05-18 07:51:15 +00:00
document_category_custom_field.rb remove trailing white-spaces and an empty line from document category custom field model source. 2011-05-18 07:51:51 +00:00
document_observer.rb remove trailing white-spaces from document observer model source. 2011-05-18 07:52:48 +00:00
enabled_module.rb remove trailing white-spaces from enabled module source. 2011-05-18 07:52:23 +00:00
enumeration.rb Use subclasses method instead of class variable. 2012-02-24 18:23:58 +00:00
group.rb Rails3: use .to_s for overriding human_attribute_name parameter at group model 2012-02-24 14:56:54 +00:00
group_custom_field.rb remove trailing white-spaces from app/models/group_custom_field.rb. 2011-08-31 08:42:00 +00:00
issue.rb Rails 3.1 compatibility. 2012-03-04 11:41:10 +00:00
issue_category.rb Prevent mass-assignment when adding/updating an issue category (#10390). 2012-03-06 18:59:32 +00:00
issue_custom_field.rb remove trailing white-spaces from app/models/issue_custom_field.rb. 2011-08-31 08:46:27 +00:00
issue_observer.rb remove trailing white-spaces from app/models/issue_observer.rb. 2011-08-31 08:45:59 +00:00
issue_priority.rb remove trailing white-spaces from app/models/issue_priority.rb. 2011-08-31 07:02:49 +00:00
issue_priority_custom_field.rb remove trailing white-spaces from app/models/issue_priority_custom_field.rb. 2011-08-31 07:03:35 +00:00
issue_relation.rb Removed after_initialize methods. 2011-12-18 14:57:58 +00:00
issue_status.rb Rails3: model: replace deprecated 'after_save' method at IssueStatus model 2011-09-21 23:50:52 +00:00
journal.rb remove trailing white-spaces from app/models/journal.rb. 2011-08-31 07:04:22 +00:00
journal_detail.rb remove trailing white-spaces from app/models/journal_detail.rb. 2011-08-22 13:31:08 +00:00
journal_observer.rb remove trailing white-spaces from app/models/journal_observer.rb. 2011-08-31 08:48:10 +00:00
mail_handler.rb Adds Redmine::Utils.random_hex for generating a random hex string. 2012-03-04 11:05:02 +00:00
mailer.rb Renamed Mailer#test to Mailer#test_email. 2012-03-04 12:38:34 +00:00
member.rb Fixed potential error when sorting members without role (#10053). 2012-02-12 14:54:30 +00:00
member_role.rb Rails3: model: replace deprecated validate method at member_role model 2011-12-04 05:21:20 +00:00
message.rb Prevent mass-assignment when adding/updating a forum message (#10390). 2012-03-06 19:46:59 +00:00
message_observer.rb remove trailing white-spaces from message observer model source. 2011-05-17 03:57:57 +00:00
news.rb Prevent mass-assignment when adding/updating a news (#10390). 2012-03-06 19:50:10 +00:00
news_observer.rb remove trailing white-spaces from app/models/news_observer.rb. 2011-08-31 08:47:21 +00:00
principal.rb Fixed that the proposed users list may be empty when adding a project member (#10374). 2012-03-06 18:37:30 +00:00
project.rb Removed sort order on issues association. 2012-03-04 11:53:15 +00:00
project_custom_field.rb remove trailing white-spaces from app/models/project_custom_field.rb. 2011-08-31 07:06:26 +00:00
query.rb Rails 3.1 compatibility. 2012-03-04 11:45:15 +00:00
repository.rb Rails3: scm: use .to_s for overriding human_attribute_name parameter at repository model 2012-02-24 14:57:26 +00:00
role.rb Restores migration broken by r8182 and removes default scope on Role (#9800). 2011-12-14 22:24:20 +00:00
setting.rb Fixed random failures in RepositoriesControllerTest with ruby-1.8.7-p358. 2012-02-19 15:34:06 +00:00
time_entry.rb Prevent mass-assignment when adding/updating a time entry (#10390). 2012-03-06 20:23:00 +00:00
time_entry_activity.rb remove trailing white-spaces from app/models/time_entry_activity.rb. 2011-08-29 01:06:15 +00:00
time_entry_activity_custom_field.rb remove trailing white-spaces from app/models/time_entry_activity_custom_field.rb. 2011-08-29 01:06:42 +00:00
time_entry_custom_field.rb remove trailing white-spaces from app/models/time_entry_custom_field.rb. 2011-08-29 01:07:13 +00:00
token.rb Adds Redmine::Utils.random_hex for generating a random hex string. 2012-03-04 11:05:02 +00:00
tracker.rb remove trailing white-spaces from app/models/tracker.rb. 2011-08-22 02:08:37 +00:00
user.rb Adds Redmine::Utils.random_hex for generating a random hex string. 2012-03-04 11:05:02 +00:00
user_custom_field.rb remove trailing white-spaces from app/models/user_custom_field.rb. 2011-08-31 07:05:03 +00:00
user_preference.rb Set user_id as a protected attribute (#10390). 2012-03-06 20:57:33 +00:00
version.rb Prevent mass-assignment when adding/updating a version (#10390). 2012-03-06 20:31:45 +00:00
version_custom_field.rb remove trailing white-spaces from app/models/version_custom_field.rb. 2011-08-31 10:09:05 +00:00
watcher.rb Rails3: model: replace deprecated validate method at watcher model 2011-12-04 09:45:18 +00:00
wiki.rb Prevent mass-assignment when adding/updating a wiki (#10390). 2012-03-06 20:34:38 +00:00
wiki_content.rb Adds #current_version? method to wiki content. 2011-11-28 20:12:03 +00:00
wiki_content_observer.rb remove trailing white-spaces from app/models/wiki_content_observer.rb. 2011-08-31 04:08:30 +00:00
wiki_page.rb Ability to edit a wiki page's parent on the edit page (#6449). 2012-02-05 14:35:27 +00:00
wiki_redirect.rb remove trailing white-spaces from app/models/wiki_redirect.rb. 2011-08-31 04:07:52 +00:00
workflow.rb remove trailing white-spaces from app/models/workflow.rb. 2011-08-31 10:08:39 +00:00