Skip to content

resolveArray tend to cause rate limit error #43

Answered by md-y
johnlim5847 asked this question in Q&A
Discussion options

You must be logged in to vote

The resolveArray function uses Promise.all to resolve all elements from the array, but that also means each request happens concurrently, breaking the rate limit. This is an oversight on my part and I will make it request in a series like getMultiple does.

As of now Groups and Lists do not support includeSubObjects in practice since the query parameter is allowed by MD but it does nothing (thus the second code block you wrote has the same performance as the first). However, the next version of the official API will add support for this on July 21st, so there will be a new release around then that fixes this issue and allows for the increased performance of includeSubObjects.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by md-y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants