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

Record에 대해 Bulk 처리 API 구현 #28

Closed
manamana32321 opened this issue Aug 30, 2024 · 1 comment
Closed

Record에 대해 Bulk 처리 API 구현 #28

manamana32321 opened this issue Aug 30, 2024 · 1 comment
Labels
API API 연결 feature 새로운 기능 추가

Comments

@manamana32321
Copy link
Collaborator

manamana32321 commented Aug 30, 2024

Describe the feature

이는 당장 급한 작업은 아닙니다! 여유 생기면 봐주세요~

Record Bulk 처리

image
관리자 페이지와 RowAction이 추가됨에 따라 관리자가 단시간에 대량으로 데이터 변경 요청을 보내는 상황이 예상됩니다.
서버 측에서 각각의 레코드에 대해 일일이 API 요청을 처리하는 것은 큰 부담이 될 것이기에
이를 데이터베이스 레벨에서 트랜잭션을 통해 일괄적으로 처리하는 등의 매커니즘을 구현한 후
그에 맞게 Response Body 및 URL 설정을 부탁드립니다.

다음은 클라이언트 측에서 제안하는 Response Body 및 URL 입니다.

  • 단일 레코드: studies/delete/[id], body 없음
  • 다중 레코드: studies/delete, { "ids": [1, 2, 3, 4] }

힘들다면 트랜잭션은 나중에 구현하고 우선 Bulk 요청을 받되 실제 처리는 개별적으로 진행하는 것도 좋습니다.

Additional context

@manamana32321 manamana32321 added API API 연결 feature 새로운 기능 추가 labels Aug 30, 2024
@manamana32321
Copy link
Collaborator Author

Close #28
#23 과 중복된 이슈입니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API 연결 feature 새로운 기능 추가
Projects
None yet
Development

No branches or pull requests

1 participant