usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [07/10] git commit: remove break
Date Thu, 27 Feb 2014 23:26:03 GMT
remove break


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/f41c0f5e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/f41c0f5e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/f41c0f5e

Branch: refs/heads/master
Commit: f41c0f5e5b43f688a81e0a9b0f46008dc86cc658
Parents: d5b540c
Author: Shawn Feldman <shawn.feldman@gmail.com>
Authored: Wed Feb 26 15:31:13 2014 -0700
Committer: Shawn Feldman <shawn.feldman@gmail.com>
Committed: Wed Feb 26 15:31:13 2014 -0700

----------------------------------------------------------------------
 .../usergrid/services/users/activities/ActivitiesService.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f41c0f5e/stack/services/src/main/java/org/apache/usergrid/services/users/activities/ActivitiesService.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/services/users/activities/ActivitiesService.java
b/stack/services/src/main/java/org/apache/usergrid/services/users/activities/ActivitiesService.java
index 6cc0daf..1da9672 100644
--- a/stack/services/src/main/java/org/apache/usergrid/services/users/activities/ActivitiesService.java
+++ b/stack/services/src/main/java/org/apache/usergrid/services/users/activities/ActivitiesService.java
@@ -136,7 +136,7 @@ public class ActivitiesService extends GenericCollectionService {
 
             List<EntityRef> refs = new ArrayList<EntityRef>();
             ConnectedEntityRef c;
-            int breaker = 10000;
+            int breaker = 5;
             //collect
             while (itr.hasNext()) {
                 c = (ConnectedEntityRef) itr.next();
@@ -145,7 +145,6 @@ public class ActivitiesService extends GenericCollectionService {
                 if( refs.size() > breaker ){
                     em.addToCollections(refs, "feed", activity);
                     refs.clear();
-                    break;
                 }
             }
             //add to collections


Mime
View raw message