1

In the createCriteria using max:50 and offset:0, I have a projection like below

projections {
sum('downloads')
sum('clicks')
groupProperty('site')
groupProperty('link')
groupProperty('device')
}

totalCount returns 939 rows and the result set returns 8. How I can get the no of resultset? I tried resultSet.size but doesn't help because it returns max 50. Right now, I'm running two queries to get the number of records. But is there any way that I can get the resultset with total number in one shot?

0 Answers0