Rate Limits and ApplyWrites #2366
Unanswered
mm14kwn
asked this question in
Dev Debugging
Replies: 1 comment 5 replies
-
Can you describe your use-case more, and why creating so many block records would be a reasonable way to go about it? The rate-limits exist for good reasons: repositories are not designed to store unlimited numbers of records, and graph interactions like blocks can consume resources in unexpected ways (for instance, blocks might be cached in-memory, and RAM is expensive). |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm attempting to programatically block a large number of users on bluesky, and am running into problems with rate limits creating records. Pushing each block individually with create_record I hit the 1666/hour or 16666/day limit, which is understandable, so I then attempted to batch create the records with apply_writes - thinking this would be able to just update my blocks in one chunk rather than overloading things with multiple requests. However this method limits me to 200 blocks per request and then runs into the same rate limit, meaning I can do 6 writes of 200 = 1200 per hour and then have to wait a further hour. Is there a more efficient/larger scale way to implement this or am I stuck either hammering a single create_record every 7 seconds or six apply_writes per hour for the next few months?
Beta Was this translation helpful? Give feedback.
All reactions