asolfre / appengine-rest-server

Automatically exported from code.google.com/p/appengine-rest-server
Other
0 stars 0 forks source link

Need to return a count of the results in total. #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The results should really return  a count of the total number of entities. This 
will allow for proper pagination on the the client side.

I have looked at the code for hours now and can't figure out how to do it 
myself so I was hoping someone could. I am still learning python so that script 
is still somewhat foreign to me :(

Original issue reported on code.google.com by msei...@gmail.com on 10 May 2013 at 10:25

GoogleCodeExporter commented 9 years ago
Here is a picture of what I mean :-)

Original comment by msei...@gmail.com on 10 May 2013 at 10:27

Attachments:

GoogleCodeExporter commented 9 years ago
In general, robust APIs don't return a total count because it is a. time 
consuming to compute and b. often inaccurate anyway.  likewise, the underlying 
app engine data store doesn't provide a total count of the results, so it's not 
possible.

Original comment by jahlborn@gmail.com on 11 May 2013 at 1:15