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

数値のinputでバックエンド過負荷が発生しないようにする #35

Open
Syuparn opened this issue Apr 19, 2023 · 0 comments

Comments

@Syuparn
Copy link

Syuparn commented Apr 19, 2023

現在、フロントエンドではフォームの入力情報が1つでも変更されると検索結果が更新されます。そのため、数値フォームのspinner(矢印ボタン)で値を増減させると、変化させた分だけの回数バックエンドへリクエストが飛んでしまいます。

例:年収フォームを矢印で100万から200万に増加させると、100回リクエストが発生(ローカルで検証)

image

数秒の間に数百のリクエストが発生しバックエンドに負荷がかかるため、

  1. 数値を確定してからリクエストするようにする
  2. フォームの矢印を消し、手入力しかできないようにする

のような対応が必要と考えています。

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

1 participant