Forum BigDB dbo.Save() and BigDB.SaveChanges() fails eventually

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

dbo.Save() and BigDB.SaveChanges() fails eventually

Postby romeoordos » March 10th, 2014, 7:23 pm

As subject obviously says objects saving starts constantly fail after some period of time. It doesn't call any callback no success neither error. It just silently floods RAM without any error or exeption messages.

The time of first fail start can vary from 10 minutes to 5 hours.

I use C# plugin for Unity. It runs on server with private connection and it proccesses thousands of BigDB commands per minute. Other operations as Load, LoadRange, etc. work as expected.

Connection Code:
Code: Select all
    protected void Start()
    {
        PlayerIO.Connect("gameId", "connectionId", "userId", PlayerIO.CalcAuth("userId", "sharedSecret"), "",
        io =>
        {
            Preferences.db = io.BigDB;
        },
        error =>
        {
            Debug.LogError(error.Message);
            Application.Quit();
        }); 
    }


Usage example:
Code: Select all
        Preferences.db.Load(Inventory.TABLE, "userId", delegate(DatabaseObject dbo)
        {
            // Will trigger
            if (dbo == null) return;
            dbo.Set("property", "value");

            Preferences.db.SaveChanges(true, false, new[] { dbo },
            delegate
            {
                // Will never trigger
            },
            delegate(PlayerIOError value)
            {
                // Will never trigger
            });
        });


Any help is appreciated.
romeoordos
Paid Member
 
Posts: 9
Joined: July 27th, 2013, 10:42 am

Return to BigDB



cron