continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r787229 - /continuum/branches/continuum-1.3.x/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/GroupSummaryAction.java
Date Mon, 22 Jun 2009 13:00:44 GMT
Author: evenisse
Date: Mon Jun 22 13:00:44 2009
New Revision: 787229

URL: http://svn.apache.org/viewvc?rev=787229&view=rev
Log:
[CONTINUUM-2273] Improve performance by reducing the quantity of requests

Modified:
    continuum/branches/continuum-1.3.x/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/GroupSummaryAction.java

Modified: continuum/branches/continuum-1.3.x/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/GroupSummaryAction.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.3.x/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/GroupSummaryAction.java?rev=787229&r1=787228&r2=787229&view=diff
==============================================================================
--- continuum/branches/continuum-1.3.x/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/GroupSummaryAction.java
(original)
+++ continuum/branches/continuum-1.3.x/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/GroupSummaryAction.java
Mon Jun 22 13:00:44 2009
@@ -51,7 +51,9 @@
     {
         groups = new ArrayList<GroupSummary>();
 
+        //TODO: Merge this two requests to one
         Collection<ProjectGroup> projectGroups = getContinuum().getAllProjectGroups();
+        Map<Integer, ProjectGroupSummary> summaries = getContinuum().getProjectsSummaryByGroups();
 
         for ( ProjectGroup projectGroup : projectGroups )
         {
@@ -66,7 +68,6 @@
                 groupModel.setName( projectGroup.getName() );
                 groupModel.setDescription( projectGroup.getDescription() );
 
-                Map<Integer, ProjectGroupSummary> summaries = getContinuum().getProjectsSummaryByGroups();
                 ProjectGroupSummary summary = summaries.get( projectGroup.getId() );
 
                 if ( summary != null )



Mime
View raw message