Hi,

The default limit is still 1000, you need to set you're own limit in order
to exceed the default (in fact countEntities() has been deprecated
to encourage you to do this). Here are some examples:

query.countEntities(withLimit(5000)); // limit of 5000
query.countEntities(withDefaults()); // no limit
query.countEntities(withLimit(2000).offset(1000)); // count entities in the
range 1000 - 3000

query.countEntities() is equivalent to query.countEntities(withLimit(1000))
so that people relying on this behavior are not broken by us removing the
limit. Since counting to no more efficient than it used to be we could not
change the default limit. Consider an application that calls
.countEntities() on a query that has 10s of thousands of results. If we
simply changed the behavior of countEntities() to impose no limit, requests
that used this function and previously had no problems would start timing
out (as countEntities() would take > 30 seconds) with no change to the
user's code.

 - Alfred

On Thu, Aug 19, 2010 at 11:45 AM, fvisticot <[email protected]> wrote:

> I have made the test and i have the same pb !!!
> count method doest not return result greater than 1000...
>
> Any suport ?
>
> On 19 août, 06:47, Yasuo Higa <[email protected]> wrote:
> > Hi all,
> >
> > According to appengine SDK 1.3.6 release notes, results of datastore
> > count() queries and offsets
> > for all datastore queries are no longer capped at 1000.
> >
> > I guess datastore count() means PreparedQuery#countEntities().
> > But PreparedQuery#countEntities() does not seem to return more than 1000.
> >
> > Do I misunderstand datastore count()?
> >
> > 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
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to