Forum BigDB Deletion doesn't work

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

Deletion doesn't work

Postby Amitloaf » October 31st, 2012, 2:36 am

I tried deleting an object from BigDB from serverside code.
I can't see it in the website under BigDB objects anymore but when I try to get it via Load in Server code, it still retrieves it.
What can I do about it?
Amitloaf
 
Posts: 10
Joined: September 3rd, 2012, 12:56 pm

Re: Deletion doesn't work

Postby Benjaminsen » October 31st, 2012, 1:29 pm

Can you provide a small code example that re-creates this error in a reproducible manner?
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Deletion doesn't work

Postby Amitloaf » October 31st, 2012, 7:08 pm

Yes - this one works for me:
I created an object the normal way with one integer in the table "Games"
then loaded it and ran this line

PlayerIO.BigDB.DeleteKeys("Games", dbObj.Key);

then Tried to load it again in a different session and it was there.
Also - I later tried changing the integer and it did change and this caused the object to re-appear in the website database
BUT! It wouldn't appear in the indexes of that table.
I guess it got in some sort of zombie mode.
Amitloaf
 
Posts: 10
Joined: September 3rd, 2012, 12:56 pm


Return to BigDB



cron