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.