usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject [31/50] [abbrv] usergrid git commit: Increase limit of device fetching per user to 50.
Date Mon, 02 May 2016 17:55:02 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/8da73349
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/8da73349
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/8da73349

Branch: refs/heads/USERGRID-1246-MASTER
Commit: 8da733496df3425f3daa66808a66a6bf2c594a52
Parents: 8887bb1
Author: Michael Russo <mrusso@apigee.com>
Authored: Thu Apr 21 10:08:09 2016 -0700
Committer: George Reyes <grey@apache.org>
Committed: Mon May 2 10:49:34 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/8da73349/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