Datastore lagging upon loading

I haven’t been having this issue for about 3 months, ever since I wrote my own admin system.

But it appears now that every time the DataStore is asked to load someone’s data, it freezes the entire game for everyone, kind of like a lag switch, and after a few seconds, ping goes back to normal.

Has anyone been experiencing this issue? Yes, I’m pretty sure it’s because of the DataStore since I stood in-game for about 30 minutes, and every time someone loaded in and it warned that data has been loaded the game freezes.

I’ve been using this same DataStore method for the past 3 months and never had a problem with it, I’m not sure why it’s happening now.

1 Like

I’ve experienced this issue recently. I’ve only ever had this problem when my game was infected by a fake plugin. Try checking your plugins and searching for scripts in workspace

1 Like

This seems very plausible since one of my developers was using shady plugins (they’re very bad with plugins), I’ll look into it immediately.

1 Like

Hey! Perhaps you are loading data more times than needed; there are DataStore limits after all and considering how you describe the lag, there is undoubtedly a serious underlying problem.

But if it has been working for a while and suddenly went haywire, I would look for suspicious plugins/scripts/models that may be present as @sniper74will says.

1 Like