continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r787230 - /continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/GroupSummaryAction.java
Date Mon, 22 Jun 2009 13:11:53 GMT
Author: evenisse
Date: Mon Jun 22 13:11:53 2009
New Revision: 787230

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

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

Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/GroupSummaryAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/GroupSummaryAction.java?rev=787230&r1=787229&r2=787230&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/GroupSummaryAction.java
(original)
+++ continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/GroupSummaryAction.java
Mon Jun 22 13:11:53 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