Forum BigDB Paging through an index

Discussion and help relating to the PlayerIO database solution, BigDB.

Paging through an index

Postby PeteHufnagel » March 27th, 2011, 5:07 am

The feature to restict the range of values you want back from an index query is great, but I would also like to be able to make a paging system which lets users page through the list of highscores. Is there a way to ask for entries 1-10, then 11-20 from an index? If not, I ask it as a feature request. :)
Posts: 9
Joined: March 22nd, 2011, 6:27 am

Re: Paging through an index

Postby Henrik » March 27th, 2011, 9:15 am

Do a loadRange with the start and stop and limit to 10 to get the first 10 values. Then do the second loadRange call with the last value of that as the new start object, and keep the stop and limit as they were, then you'll get the next 10 objects, and so on.
Posts: 1855
Joined: January 4th, 2010, 1:53 pm

Return to BigDB