refactor: 일일 금융 동기화 N+1 쿼리 제거 및 계좌 저장 벌크화 (#233) - #235
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
관련 이슈
작업 사항
일일 금융 동기화 연결 조회 최적화
findByUserIdsAndProvider로 일괄 조회CodefConnection을 기관별 수집 과정에 재사용CODEF 계좌 저장·재조회 벌크화
upsert + findOne반복을upsertAll + findMany방식으로 변경NTROPY 계좌 조회 개선
배치·Mapper 안전장치 보강
Batching.chunk에 null 및 0 이하 chunk 크기 검증 추가ON DUPLICATE KEY UPDATE정책 일치 여부 검증실제 MySQL 성능 검증 하네스 추가
Executor인터셉터로 실제 SQL 실행 횟수 측정EXPLAIN ANALYZE수행AccountCollectionService경로를 통과하는 DB 스모크 테스트 추가참고 사항
로컬 MySQL Mapper 경로 수행시간
실행계획 확인
uk_codef_connection_user_provider: index range scanuk_account_connection_hash: index range scan