Forum BigDB Load properties only, not full Objects

Discussion and help relating to Player.IO's database solution, BigDB.

Load properties only, not full Objects

Postby capitaljmedia » November 9th, 2011, 2:30 am

Hi,

Is there any way to get a single property from a range of objects? Instead of getting an entire DatabaseObject or an array of DatabaseObjects? To save on data transfer I would love to just get an array that has a specific property from each object in my index.

Or does that not really matter?

-J
capitaljmedia
 
Posts: 24
Joined: September 13th, 2011, 2:33 am

Re: Load properties only, not full Objects

Postby Oliver » November 9th, 2011, 10:54 am

Hey,

There is no way currently to limit the output from BigDB -- you'll have to transfer the entire object out. When you save changes though, only the difference from the loaded object is transferred back, so it saves a lot of bandwidth there.

BigDB uses an optimized binary format so there is not much overhead except for the raw data you put in the objects.

- Oliver
User avatar
Oliver
.IO
 
Posts: 1136
Joined: January 12th, 2010, 8:29 am

Re: Load properties only, not full Objects

Postby capitaljmedia » November 9th, 2011, 7:54 pm

ok, thank you. Good to know :)
capitaljmedia
 
Posts: 24
Joined: September 13th, 2011, 2:33 am


Return to BigDB