Forum BigDB loadRange

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

loadRange

Postby carsonmorton » September 12th, 2012, 11:07 pm

I'm not understanding the documentation for LoadRange

I want to get the 10 players with highest score

Code: Select all
PlayerIO.BigDB.LoadRange("PlayerObjects", "ScoreIndex", path?, start?, stop?, 10, delegate(DatabaseObject[] _players)
{
     // do stuff...
});


I dont understand path start or stop. but I just want to start from 0 (my index sorts highest to lowest)
carsonmorton
 
Posts: 39
Joined: April 24th, 2012, 3:12 am

Re: loadRange

Postby Henrik » September 13th, 2012, 12:00 pm

If you only have a single property in your index, you can ignore path and set it to null. If you want to start at the beginning, just set start to null, and also set stop to null since you potentially want all objects in the index. So, null, null, null. :-)
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: loadRange

Postby carsonmorton » September 13th, 2012, 3:55 pm

ok, then I guess I am doing it right!
carsonmorton
 
Posts: 39
Joined: April 24th, 2012, 3:12 am


Return to BigDB