-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use other Keys than player #155
Comments
There's an open issue for user IDs, but read only. The problem is it's not safe. DataStore2 caches, and so multiple separate instances can end up clashing different data against each other. |
Where tho |
And how should it not be safe? Normal Data Stores use it like that too, and some public games too. How should that be unsafe? |
Multiple servers can edit the data at the same time, overwriting each other, and not producing a consistent output, especially considering DataStore2 works on a cache. It's a data race. |
But that would just be dependant on the use, errors are not your problem if they happen. I mean, you can just support players as safe and other keys as "unsafe" too |
I'm not personally interested in adding footguns to DataStore2 given its popularity, though I would encourage you to fork if you need this. |
I know it sounds dumb, but why can we only use the Player for Datastore2()? Why can't we use like tags, or UserIds? Would be nice if we would get it! :D
The text was updated successfully, but these errors were encountered: