Saving Data per Product Purchases

Is it fine to save player’s data everytime they purchase a dev product? I have a data saving function that fires on dev product purchases in order to save the player’s data as soon as they buy a product, to reduce the chances of data rollback if they were to teleport to a reservedserver in our game.

I don’t think this is a good idea. Instead, save the player’s data just before they teleport to a reserved server.

1 Like

In my opinion it’s a good idea because they paid robux (aka REAL MONEY) for the product and if soemthing were to happen (i.e data doesn’t save when they leave), then that’s an issue

If the user buys multiple products, datastore limits will be hit. Then nobody’s data would save for a moment, which isn’t ideal! So if the user spent robux, and then roblox servers crash, their data does not save. But you could fix this problem by not saving the user’s data if it hasn’t changed. Then you would be able to save the data as soon as it does change (with a 30-60 second cooldown).

Datastore limits won’t be hit that fast