I realized I found myself calling the same DataStore over on different scripts. Does this count up for my DataStore limit, or does it pull from cache once one of them is called?
The DataStore isn’t my biggest concern since my game only has 1 player servers, but I’d still to know in case it’s incredibly bad practice or it has insanely bad network performance implications.
If it does count for each call, my best guess would be to have a module return the table instead of calling the DataStore each and every time.
DataStoreService:GetDataStore doesn’t have a limit as to how often you can call it, but I still recommend using the module since it would allow you to use the DataStore within multiple scripts even though it was retrieved only once
GetAsync does have a limit on how frequently you can call it, but GetDataStore doesn’t. In the photo on the main post, GetDataStore is highlighted and GetAsync doesn’t show up, so I assumed you were talking about GetDataStore
Since GetAsync is limited, then storing the data it retrieves in a module is a good idea, but remember that changing a module’s data on the server still won’t make it replicate to the client due to how modules work