The docs were missing a few details I was wondering:
Calling OrderedDataStore:GetSortedAsync()
returns a DataStorePages
object, which returns a single page of data, but more can be loaded with DataStorePages:AdvanceToNextPageAsync()
…
When exactly is the data for pages loaded? Does Roblox perform a datastore get request each time DataStorePages:AdvanceToNextPageAsync()
is called?
Can I cache the DataStorePages object and advance it later, or will that return outdated data?
Does AdvanceToNextPageAsync have any limits?