Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change rate limit config? #9

Open
bearT2 opened this issue Aug 25, 2022 · 4 comments
Open

How to change rate limit config? #9

bearT2 opened this issue Aug 25, 2022 · 4 comments

Comments

@bearT2
Copy link

bearT2 commented Aug 25, 2022

Hi! I am using prsp_stream() to score around 1 million comments. I have increased the quota limit, but my requests per minute are still unchanged. Is there any rate limit config I should change to limit or remove the default limits? Thank you!

@favstats
Copy link
Owner

You can change the sleep parameter: the default is 0.7

@bearT2
Copy link
Author

bearT2 commented Aug 26, 2022

Thank you so much! I'm very new to perspective API. I changed the sleep parameter to 0.02, 0.001, and 0.0001. The traffic increased significantly but then stayed at around 6 QPS. That's still far away from the quota I have. Not sure how to increase the traffic then...

@favstats
Copy link
Owner

Interesting. One reason might be because the code just can't execute faster than 6QPS because it might be written a bit inefficiently (it wasn't written for these greater quote limits in mind). One could try writing a more barebones API wrapper and it might be a bit faster but it's not something I have time for unfortunately :/

@bearT2
Copy link
Author

bearT2 commented Sep 1, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants