PointsBufferSize
Specifies a point buffer used to increase the calculated wait time for throttling prevention.
データ型
int
デフォルト値
0
解説
Shopify’s GraphQL API manages usage with a budget of "cost points" that refill over time. To avoid running out of points, the 本製品 intelligently calculates when to pause before making its next request.
This property makes the 本製品 more cautious by increasing the number of points required before making a request. The 本製品 then waits for the amount of time that would be required to recover a number of points equal to the query's cost plus the buffer size. This provides a "safe spot" that helps prevent throttling errors from other concurrent connections sharing the same API quota.
For example, if a query costs 200 points and you set this property to 100, the 本製品 will calculate the time required to restore a total of 300 points and will wait for that duration before sending the request.
Using any buffer may cause the 本製品 to pause more often, but it increases safety. A smaller buffer provides a good safety margin without significantly affecting speed. A larger buffer offers more protection but may impact performance more noticeably. A value of 0 (the default) is suitable when you do not have multiple connections sharing the same API quota.