Hi Pion, > > // Version 3 - This code works on both (deployed) App Engine and > Development server > // But The Admin Console -> Datastore -> Statistic shows that it has > about 5,000 entities > // This code returns about 6,0000 entities > Query query = new Query(kind); > query.setKeysOnly(); > FetchOptions fetchOptions = FetchOptions.Builder.withOffset(0);
How about: FetchOptions fetchOptions = FetchOptions.Builder.withOffset(0).limit(Integer.MAX_VALUE); Instead of: FetchOptions fetchOptions = FetchOptions.Builder.withOffset(0); > PreparedQuery preparedQuery = datastore.prepare(query); > int result = preparedQuery.asList(fetchOptions).size(); > > logger.info(Integer.toString(result)); > > return result; > } > Hope this helps, Yasuo Higa --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---