Do all of these DataStore requests count up the number of requests, or do they just pull from cache?

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.

Thank you!

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

Whenever I call that it’s also usually accompanied by this:

So yeah, I do think my concern about the limit is valid.

GetAsync ~= GetDataStore

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

Module it is, then. Thank you!

GetDataStore is highlighted and GetAsync doesn’t show up, so I assumed you were talking about GetDataStore

Oh, I see where the confusion stems from. I thought it was obvious it would come associated to a :GetAsync but I also see why you thought otherwise.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.