##// END OF EJS Templates
scm: git: performance improvements in fetching revisions (#8857, #9472)...
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

File last commit:

r6565:de11d2764fd7
r9024:999a4ba30d7b
Show More
index.html.erb
35 lines | 847 B | text/plain | TextLexer
Jean-Philippe Lang
Adds workflow copy functionality (#1727)....
r3040 <%= render :partial => 'action_menu' %>
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 <h2><%=l(:label_workflow)%></h2>
<% if @workflow_counts.empty? %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% else %>
Jean-Philippe Lang
Fixed: Layout problem in workflow overview (#6990)....
r4314 <div class="autoscroll">
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 <table class="list">
<thead>
<tr>
<th></th>
<% @workflow_counts.first.last.each do |role, count| %>
<th>
<%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %>
</th>
Toshi MARUYAMA
remove trailing white-spaces from app/views/workflows/index.rhtml....
r6561
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 <% end %>
</tr>
</thead>
<tbody>
<% @workflow_counts.each do |tracker, roles| -%>
<tr class="<%= cycle('odd', 'even') %>">
<td><%= h tracker %></td>
<% roles.each do |role, count| -%>
<td align="center">
Jean-Philippe Lang
Fixed: Workflow summary shows X icon for workflow with exactly 1 status transition (#7611)....
r4770 <%= link_to((count > 0 ? count : image_tag('false.png')), {:action => 'edit', :role_id => role, :tracker_id => tracker}, :title => l(:button_edit)) %>
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 </td>
<% end -%>
</tr>
<% end -%>
</tbody>
</table>
Jean-Philippe Lang
Fixed: Layout problem in workflow overview (#6990)....
r4314 </div>
Jean-Philippe Lang
Adds a workflow overview screen....
r1912 <% end %>