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

Add waiting time before loading autocomplete information #289

Open
Bertware opened this issue Apr 22, 2018 · 0 comments
Open

Add waiting time before loading autocomplete information #289

Bertware opened this issue Apr 22, 2018 · 0 comments

Comments

@Bertware
Copy link
Member

Prevent querying the stations list too much. The limit is 2 requests per second, with an additional burst of 6. Passing this limit will cause 503 responses and the auto-complete list will temporary disappear.

Proposed solution:
The station name auto-complete should wait 300ms before searching. If in this period, another character is typed, the interval should be reset. Once the interval has elapsed, the text which is then typed should be searched.

@Bertware Bertware changed the title Auto-complete timeout before search Add waiting time before loading autocomplete information Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant