API 성능 측정 #1091
Unanswered
sangwonsheep
asked this question in
Issue tracking 이슈 트래킹
API 성능 측정
#1091
Replies: 1 comment
-
@WithSpan
@Transactional(readOnly = true)
public List<Pick> getPickListPreservingOrder(List<Long> pickIdList) {
List<Pick> pickList = pickRepository.findAllById_JoinLink(pickIdList);
// 조회리스트에 존재하지 않는 픽이 있으면 예외 발생
if (pickList.size() != pickIdList.size()) {
throw ApiPickException.PICK_NOT_FOUND();
}
pickList.sort(Comparator.comparing(pick -> pickIdList.indexOf(pick.getId())));
return pickList;
}
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
API 성능 측정
Sorted_Additional_Response_Times_with_Index.csv
GPT 이용해서 정렬시킴.
1번째 :
62ms
, 50번째 :121ms
, 75번째 :478ms
, 90번째 :616ms
, 95번째 :683ms
, 99번째 :751ms
, 100번째 :1216ms
왜이렇게 느릴까........ DB가 아닌 다른 부분도 찾아봐야 되는건가...싶네요
100회 평균 :
271ms
가장 느린 응답 속도
653d73136d3ecfd5b8433a9f20e1464f
)첫 번째 요청
에서 발생함.왜 첫 번째 요청이 느릴까?
태그
@kimminkyeu @ss0ngcode @dmdgpdi
Beta Was this translation helpful? Give feedback.
All reactions