Hi HC, I encountered a similar problem. Your hex solution worked for me and seems to sit nicely within the Gregorio reference implementation. If you've come across anything better, I'd be interested to know. I blogged my experiences paginating which might be of interest: http://megsmitley.blogspot.com/2009/12/google-app-engine-paging-with.html
Best and thanks for your help, Meg On Nov 23, 8:03 am, HC <[email protected]> wrote: > Hi, > > I've read the GAE article > onpaginghttp://code.google.com/appengine/articles/paging.html > and have a working solution but I cannot help feeling that it > unnecessarily complex. > > I want to page through a dataset, ordered by a signed integer value > (votes). > > What I first tried was to store votes in an integer property and the > timestamp (mypagingindex) in a string property, but when trying to > oder by votes and filter by timestamp I am told that I cannot use an > inequality filter on one field when ordering on another field > beforehand (or something to that effect - I don't have the error > message, sorry). > > Now, I am storing votes in a string property as "hex(votes)| > timestamp", where hex does some extra work for negative numbers > > So, 10 is stored as 0000000A|20091123... such that alphabetic ordering > works. > > This is awkward. How do you page through integers? > > Thanks for any help, > HC -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
