Handling multiple Ordered Data Store requests

I’m trying to script one of those Time Trial games, the thing is they have leaderboards which require them to request data for multiple stages at the same time after time intervals. I’m coding something similar, I have 10 stages, however after a little bit of time these warnings start popping up and the leaderboard stops updating:

1 Answer

Take a look at the docs on DataStore Errors and Limits.

When a limit is reached, further requests are placed into one of four queues: set, ordered set, get, and ordered get. Requests in a queue are handled in the order they are received and the called function continues to yield as long as its request is queued. If the data store key itself is throttled, the request is temporarily skipped but still in the queue. Each queue has a limit of 30 requests and, when this limit is exceeded, the requests fail with an error code in the 301–306 range indicating that the request was dropped entirely.

As the warnings imply, you're sending too many requests. You need to find a way to read / write / update data less frequently.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like