For example a player buys a weapon should I save using updateasync or for another example if they buy something with robux. by the way I save every 30 seconds and player removing
COMMUNITY QUESTION
Should I save everytime a player buys something?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Let say there is 10 players and all of them buys something with robux and it just reach the 30 seconds mark for the auto save, it will flood the datastore. https://developer.roblox.com/en-us/articles/Datastore-Errors
No you should not. There's a limit with how many times you can save with DataStore every minute. An auto save system will work best.
Given how infrequent Robux purchases are, there is no harm in saving when someone buys something. Your 30-second auto save should already be staggered and should only be saving if a player's data has actually changed since their last successful save.