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 debounce to reduce db requests #129

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

erinz2020
Copy link
Contributor

on select image page, only when users stop typing for 0.5 second, make db request. this can reduce burden on db and also avoid outdated response displayed to users

@erinz2020 erinz2020 self-assigned this Dec 6, 2024
Copy link
Member

@TanyaStere42 TanyaStere42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works beautifully with all manner of label selection methods. code looks clean to me!

@TanyaStere42 TanyaStere42 merged commit 1ae5b2f into main Dec 6, 2024
@TanyaStere42 TanyaStere42 deleted the improve_performance_by_adding_debounce branch December 6, 2024 20:45
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

Successfully merging this pull request may close these issues.

2 participants