Hi Dave,

counters seems good for counting the number for the whole collection. But it 
can’t give you the number for ad-hoc query. Is my understanding correct?


Still want to know how to do ad-hoc query with count info in usergrid. What’s 
the best practice?


Thanks,
Alex


Original Message
Sender:[email protected]
Recipient:[email protected]
Date:Tuesday, Feb 23, 2016 06:01
Subject:Re: How to get the count of ad-hot query?


Hi Alex, The Usergrid query language does not (currently) provide a count() 
function. If you need to keep count of things you may want to consider using 
counters: 
http://usergrid.apache.org/docs/counters-and-events/creating-and-incrementing-counters.html
 Dave On Mon, Feb 22, 2016 at 6:15 PM Alex Yang [email protected] wrote:  
Hi community,   Is there a way to get search counting, similar like sql: select 
count(*)  where name='xxx' in Usergrid 2.1.0-rc1?   I developed a cash app. 
Users download offers in my app and I reward them  their downloading. I will 
need to know how many offers user download  everyday, everyweek and every month 
to manage their level. So I am  expecting a feature to let query the counting 
instead of always return the  entities.   What is your recommendation way to do 
that in user grid 2.1.0-rc1?   Thanks very much,  Alex Yang

Reply via email to