[Feature] - [Company] 기업 검색 로직 리팩토링했습니다. #232
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨(#이슈 번호)
✏️내용
기업 검색 시
검색 API 하나로 전체 페이지 수, 전체 기업 수, 전체 기업 목록이 전부 응답됐었는데
목록 조회 쿼리 + count 쿼리로 두 개가 한 트랜잭션에 포함되니 검색 속도가 현저히 떨어지는 것을 확인했습니다.
따라서 기업 목록 검색 API와 전체 페이지/기업 수 검색 API로 분리하게 되었습니다.