Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Data store "Write Requests (same key)" limitation?

Asked by 6 years ago

Might be silly to ask, but I want someone to confirm me if I do have to wait 6 seconds before calling SetAsync() on the same key again after calling it. If that's the case, will my SetAsync() call error or will it yield until the 6 seconds have passed? Thanks beforehand.

From the wiki page about Data stores: Image

1 answer

Log in to vote
0
Answered by
lukeb50 631 Moderation Voter
6 years ago

There is no need to write to a data store every 6 seconds or less. hold your info for maybe a minute and write it then. As for your question, if you go to this part of that article you will see that the game will throttle the requests to that key until you get back to an ok writing speed.

0
Had a quick look at the article and completly missed that part. It seems I'll have to add a cooldown to my "Save Stats" button then. Thanks for the answer! Le_Teapots 913 — 6y
Ad

Answer this question