Forum BigDB On storing levels in the DB

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

On storing levels in the DB

Postby Vania » July 6th, 2012, 5:41 pm

I will be storing levels as ByteArrays in the DB.

If I store a level as a ByteArray, load it from the server, change just a couple of bytes and save it again,
only the difference will be uploaded right?
Vania
 
Posts: 198
Joined: March 24th, 2010, 9:01 pm

Re: On storing levels in the DB

Postby dreamora » July 7th, 2012, 9:58 am

Would be interested to know that too though I would assume that the whole byte array is sent as the updating liekly checks if the object for this specific key changed, not if a bit 17 changed or alike.
dreamora
 
Posts: 225
Joined: March 2nd, 2012, 9:58 am

Re: On storing levels in the DB

Postby Henrik » July 7th, 2012, 11:58 am

Difference check is per property in the DatabaseObject, so no, the whole bytearray will be sent.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: On storing levels in the DB

Postby Vania » July 7th, 2012, 4:30 pm

Ouch... I'll ask Benjaminsen how he implemented the level loading and updating in EverybodyEdits then.
Thanks.
Vania
 
Posts: 198
Joined: March 24th, 2010, 9:01 pm

Re: On storing levels in the DB

Postby whitershores » November 10th, 2012, 6:07 pm

Henrik wrote:Difference check is per property in the DatabaseObject, so no, the whole bytearray will be sent.



a quick question: does the 'difference check' optimisation work for loading as well as saving?

IE if my flash client periodically reloads the same DataBaseObject to check for changes, would that only download the changed properties or the full DatabaseObject each time ?
whitershores
Paid Member
 
Posts: 88
Joined: June 21st, 2011, 4:19 pm

Re: On storing levels in the DB

Postby Henrik » November 10th, 2012, 7:55 pm

No, loading loads the entire object.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to BigDB



cron