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

Already on GitHub? Sign in to your account

Add delay to user filtering. #224

merged 1 commit into from Aug 20, 2012


None yet
2 participants

nbeloglazov commented Aug 19, 2012

Ajax filter requests are sent on every keyup now. So if you want to search for "qwerty" 6 requests will be sent. It creates considerable load for server and all requests are timeout. Also site becomes unresponsive for sometime (504 Gateway Time-Out).
I added delay for filtering: script waits 300ms after user finished input and then sends filter request.

@amalloy amalloy added a commit that referenced this pull request Aug 20, 2012

@amalloy amalloy Merge pull request #224 from nbeloglazov/develop
Add delay to user filtering.

@amalloy amalloy merged commit 668ec28 into 4clojure:develop Aug 20, 2012


amalloy commented Aug 20, 2012

Thanks! This is live and probably working; it worked when I tested it locally. Long-term, we probably just need a more efficient way to show all users, or perhaps disable the "see everyone at once" feature since it's so unwieldy: we anticipated that might happen someday as our userlist grew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment