Datastore Scope question

Is there a difference between using the Datastore scope parameter and just prepending a string to every key? Does it matter? bc I find prepending a string to each key is easier

In other words, is there any performance difference or anything between

local inventoryStore = game:GetService("DataStoreService"):GetDataStore("PlayerData", "Inventory")
inventoryStore:SetAsync("User123", 100) 

and

local playerDataStore = game:GetService("DataStoreService"):GetDataStore("PlayerData")
playerDataStore:SetAsync("InventoryUser123", 100)

Nope, thats all on the web server side. It’s just an easier way to seperate one datastore. Correct me if I’m wrong with the performance side. From my knowledge thats all HTTP(Maybe not HTTP, but a method of communication) and doesn’t really impact your game at all.

I see. I really hope it’s the case bc using the scope parameter just seems so extra to me and is kind of making it difficult to use my datastore module

Its completely optional anyways. I used to cause less confusion with handling my data.

1 Like