Forum BigDB Properly deleting an object from BigDB

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

Properly deleting an object from BigDB

Postby FefanSoftware » September 30th, 2012, 7:25 am

I'm using quickConnect to login/register and then save info to the players using PlayerObjects. When I delete an object inside the BigDB it doesn't display the object anymore. If I log back in with QuickConnect all my data is back? Can I delete a PlayerObject from BigDB or are they attached to QuickConnect accounts which I can't delete individually? Thanks (:
FefanSoftware
 
Posts: 26
Joined: August 28th, 2012, 4:30 pm

Re: Properly deleting an object from BigDB

Postby dreamora » September 30th, 2012, 9:07 am

Are you sure yu delete the data from a different connection / user?
if you delete it while being logged in on said account it might be that it is restored due to some code you have somewhere that is not executed by the time you 'assume it to be'

if you want to 'remove' it from the user connection itself, instead write a boolean into the playerObject for example 'deleted' and upon connection check that on the server side. if its present, then completely flush the player object with the 'initial data'
Last edited by dreamora on September 30th, 2012, 12:13 pm, edited 1 time in total.
dreamora
 
Posts: 225
Joined: March 2nd, 2012, 9:58 am

Re: Properly deleting an object from BigDB

Postby FefanSoftware » September 30th, 2012, 9:58 am

Oh, hmm. It seems to be working now for some reason. That's a bit weird. Thanks anyway
FefanSoftware
 
Posts: 26
Joined: August 28th, 2012, 4:30 pm


Return to BigDB