usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject [21/31] usergrid git commit: Increase limit of device fetching per user to 50.
Date Mon, 02 May 2016 21:29:39 GMT
Increase limit of device fetching per user to 50.


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

Branch: refs/heads/master
Commit: 2b38d2400ada3c0a625e45e4afefa12f3c2b3b9d
Parents: a8ba65f
Author: Michael Russo <mrusso@apigee.com>
Authored: Thu Apr 21 10:08:09 2016 -0700
Committer: Michael Russo <mrusso@apigee.com>
Committed: Thu Apr 21 10:08:09 2016 -0700

----------------------------------------------------------------------
 .../services/notifications/impl/ApplicationQueueManagerImpl.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/2b38d240/stack/services/src/main/java/org/apache/usergrid/services/notifications/impl/ApplicationQueueManagerImpl.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/services/notifications/impl/ApplicationQueueManagerImpl.java
b/stack/services/src/main/java/org/apache/usergrid/services/notifications/impl/ApplicationQueueManagerImpl.java
index 44ccf2b..80e8cbe 100644
--- a/stack/services/src/main/java/org/apache/usergrid/services/notifications/impl/ApplicationQueueManagerImpl.java
+++ b/stack/services/src/main/java/org/apache/usergrid/services/notifications/impl/ApplicationQueueManagerImpl.java
@@ -45,8 +45,6 @@ public class ApplicationQueueManagerImpl implements ApplicationQueueManager
{
 
     private static final Logger logger = LoggerFactory.getLogger(ApplicationQueueManagerImpl.class);
 
-    //this is for tests, will not mark initial post complete, set to false for tests
-
     private final EntityManager em;
     private final QueueManager qm;
     private final JobScheduler jobScheduler;
@@ -245,6 +243,7 @@ public class ApplicationQueueManagerImpl implements ApplicationQueueManager
{
                                 Query devicesQuery = new Query();
                                 devicesQuery.setCollection("devices");
                                 devicesQuery.setResultsLevel(Query.Level.CORE_PROPERTIES);
+                                devicesQuery.setLimit(50); // for now, assume a user has
no more than 50 devices
 
                                 try {
 


Mime
View raw message