##// 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:

r7803:398b700e57c5
r9024:999a4ba30d7b
Show More
index.html.erb
35 lines | 1.3 KiB | text/plain | TextLexer
Jean-Philippe Lang
contextual links redesign...
r90 <div class="contextual">
Jean-Philippe Lang
* all icons replaced (new icons are based on GPL icon set: "KDE Crystal Diamond 2.5" -by paolino- and "kNeu! Alpha v0.1" -by Pablo Fabregat-)...
r154 <%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
Jean-Philippe Lang
contextual links redesign...
r90 </div>
Jean-Philippe Lang
0.3 unstable...
r10 <h2><%=l(:label_auth_source_plural)%></h2>
Jean-Philippe Lang
css cleaning...
r105 <table class="list">
<thead><tr>
Toshi MARUYAMA
replace tabs to spaces at app/views/auth_sources/index.html.erb...
r7244 <th><%=l(:field_name)%></th>
<th><%=l(:field_type)%></th>
<th><%=l(:field_host)%></th>
<th><%=l(:label_user_plural)%></th>
<th></th>
Jean-Philippe Lang
css cleaning...
r105 </tr></thead>
<tbody>
Jean-Philippe Lang
0.3 unstable...
r10 <% for source in @auth_sources %>
Jean-Philippe Lang
Adds ids on rows in auth_sources/index view (#9659)....
r7803 <tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>">
Toshi MARUYAMA
Escape AuthSources in the list....
r6007 <td><%= link_to(h(source.name), :action => 'edit', :id => source)%></td>
<td align="center"><%= h source.auth_method_name %></td>
<td align="center"><%= h source.host %></td>
<td align="center"><%= h source.users.count %></td>
Jean-Philippe Lang
View cleanup....
r3127 <td class="buttons">
Toshi MARUYAMA
replace tabs to spaces at app/views/auth_sources/index.html.erb...
r7244 <%= link_to l(:button_test), :action => 'test_connection', :id => source %>
<%= link_to l(:button_delete), { :action => 'destroy', :id => source },
:method => :post,
Jean-Philippe Lang
AuthSource list: display associated users count and disable 'Delete' buton if any (#2041)....
r1942 :confirm => l(:text_are_you_sure),
Jean-Philippe Lang
View cleanup....
r3127 :class => 'icon icon-del',
:disabled => source.users.any? %>
</td>
Jean-Philippe Lang
css cleaning...
r105 </tr>
Jean-Philippe Lang
0.3 unstable...
r10 <% end %>
Jean-Philippe Lang
css cleaning...
r105 </tbody>
Jean-Philippe Lang
0.3 unstable...
r10 </table>
Jean-Philippe Lang
New setting added to specify how many objects should be displayed on most paginated lists....
r1013 <p class="pagination"><%= pagination_links_full @auth_source_pages %></p>