On Thu, Dec 26, 2013 at 7:03 AM, raj karthi <[email protected]> wrote:

> i want to count the each entity from the data store. if the single kind
> having multiple entities i want count that.using this i am going to develop
>  application using  rest service.i am trying to use this service in other
> application to count the entity. please provide some guidance.
>
>

SQL has an easy-to-use COUNT function if you need to count rows.
Unfortunately, there's no similar functionality in the datastore. If you
want to count entities you'll have to devise another scheme: for example,
you could count entities when they're added to the datastore.

If you don't need an exact number, you can use datastore metadata entities:
https://developers.google.com/appengine/docs/java/datastore/metadataqueriesto
retrieve information about how many entities exist. A word of notice
though: the metadata information is not always up to date.


-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to