Forum BigDB Loading All Objects in BigDB Table with LoadRange

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

Loading All Objects in BigDB Table with LoadRange

Postby jivehealth » August 16th, 2013, 10:26 pm

Hi, I am working on an application where I am trying to download a list of foods from a BigDB Table. I want to download every single item within the table, but am having trouble figuring how to do that.

I found the following thread: bigdb/loading-all-objects-from-a-table-t28107

So I set up my table with an index on a string, which range from "apples" to "zucchini". However, when I do the query:

Code: Select all
BigDb.LoadRange("EEFood", "Identifier" null, "aaaaaa", "zzzzzz", 256, callback);


I get nothing back. The same thing happens when I try the range of identifiers in the BigDB Web UI. Note that I don't want to store the keys client-side because I want to update the server-side list at any time (including adding new foods) and have the client download them at any time.
jivehealth
 
Posts: 3
Joined: July 21st, 2013, 4:18 am

Re: Loading All Objects in BigDB Table with LoadRange

Postby romeoordos » August 25th, 2013, 6:11 pm

What do you mean "get nothing back"?

Do you receive empty array of DatabaseObjects in your callback or callback don't work?

In first case check if your objects are already indexed.
In second case add one more callback as described here: http://playerio.com/documentation/reference/multiplayer/playerio.gamelibrary.bigdb#LoadRange and check the error.
romeoordos
Paid Member
 
Posts: 9
Joined: July 27th, 2013, 10:42 am


Return to BigDB



cron