Forum BigDB AS# BigDB.load bug?

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

AS# BigDB.load bug?

Postby Pawel Wozniak » July 18th, 2013, 12:17 am

I`m using bigDB for loging game state and sometimes messageas are sent one after another...
in as3 api in bigDB class method load 3rd argument is callback (Function executed when the DatabaseObject is successfully loaded: function(o:DatabaseObject):void{...}) but from time to time callback method passed argument is null
Pawel Wozniak
Paid Member
 
Posts: 96
Joined: October 14th, 2012, 10:47 pm

Re: AS# BigDB.load bug?

Postby Henrik » July 18th, 2013, 7:01 pm

Then no object was loaded, we don't trigger an error for that.

There's a similar method called LoadKeys for loading multiple objects in one go, and then we return an array of objects corresponding to the array of keys you sent in, but with nulls for each position where we couldn't find an object. The Load method works exactly like that to avoid surprises.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to BigDB



cron