- Code: Select all
Cannot save changes to database object 'simpleXYZ' in table 'PlayerObjects', because there are too many (5) save operations in progress already on the object. Please consider refactoring your code to avoid calling .Save() this often.
I save to player object after each fight. Maximum speed they can occur is once per 2-3 seconds, so basicly it is not possible to call save 5 times in less than 10 seconds (and that is also practically impossible because of lag and slow players reaction, it is more like 20 seconds at best). That should be more than enough time to save player object, is it not?
I noticed that this error occurs in groups and not everyday. So I can have 2 days of no errors and than 100 error during one day. Is it possible that there is some server problem (they are overloaded during times that this error occurs or something) ?
I save stats after each fight so user don't lose them if he is disconnected or something bad happens. I think I could save at the end of game, but I would rather fix cause than effect