Writing to a Data Store too often crashes the game

Basically what’s written there. I’ve been working with an outdated version of my game that had crashing issues. Basically, if you pass the data threshold too frequently it seems that it crashes the server that’s doing all of the data writing. It happens suddenly, and there’s nothing else done server-side that could be causing this issue. I realize an easy fix is to save less often, and I’m working on doing that. This is just a warning that if you write too often to a data store, it shuts down a server after a while.

Are you writing data often to the same key? I find that if you often write data to the same key in a datastore (like constantly re-writing the data) it will slow down the server greatly and eventually crash the server.

I was using Datastores to save Group matchmaking data and was saving/updating it each time a member was invited or promoted in the group, which ultimately led to server shutdowns. I now have it periodically save every minute and that solved the problem.

I don’t think writing to different keys in a datastore often is a problem though, since I do that pretty much the whole time my lobby is running. It’s just the re-writing to the same key over and over that causes the problem.

Yeah, it involved writing too often to the same key, but only occurred when there was a lot of that kind of thing going on.