Skip to content

Comments

INTERNAL: Limit bulk get keys size#847

Closed
cheesecrust wants to merge 1 commit intonaver:developfrom
cheesecrust:internal/optimize
Closed

INTERNAL: Limit bulk get keys size#847
cheesecrust wants to merge 1 commit intonaver:developfrom
cheesecrust:internal/optimize

Conversation

@cheesecrust
Copy link
Contributor

@cheesecrust cheesecrust commented Dec 6, 2024

🔗 Related Issue

⌨️ What I did

  • asyncGetBulk의 연산의 키 제한 개수와 같게 200개의 제한을 두었습니다.
  • 초기에 getOperation에서 key의 개수를 세어 limit을 넘지 않는 경우 limit을 넘지 않을때 까지 operation을 모아 get 로 optimize 시킵니다.
  • 과거 optimize는 getOperation이 두개 이상 연속되어야만 유효했습니다.
    이를 하나만 있어도 되도록 변경했습니다.(optimized 를 사용하기 위해 get이 두개 이상 연속 되었는지 판단 할 필요 사라짐)

@cheesecrust cheesecrust requested a review from oliviarla December 6, 2024 07:55
Copy link
Collaborator

@oliviarla oliviarla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

가능하다면 테스트코드도 추가해주면 좋겠습니다.

@cheesecrust
Copy link
Contributor Author

가능하다면 테스트코드도 추가해주면 좋겠습니다.

진행하겠습니다.

Copy link
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 완료

@cheesecrust cheesecrust marked this pull request as draft December 9, 2024 09:19
@cheesecrust cheesecrust marked this pull request as ready for review December 10, 2024 00:49
@oliviarla
Copy link
Collaborator

@cheesecrust 리뷰 모두 반영된 상태인가요?

@cheesecrust
Copy link
Contributor Author

@oliviarla

@cheesecrust 리뷰 모두 반영된 상태인가요?

리뷰와 테스트 코드는 반영한 상태입니다.
현재는 아래 get과 mget 성능 비교 이슈를 먼저 진행하고 있습니다.

https://github.com/jam2in/arcus-works/issues/648

@cheesecrust cheesecrust force-pushed the internal/optimize branch 2 times, most recently from 71a76b0 to 58edd42 Compare December 18, 2024 01:41
@cheesecrust cheesecrust marked this pull request as draft December 18, 2024 01:48
@cheesecrust cheesecrust marked this pull request as ready for review December 18, 2024 02:05
@cheesecrust cheesecrust marked this pull request as draft December 30, 2024 07:12
@cheesecrust cheesecrust marked this pull request as ready for review December 30, 2024 09:15
@cheesecrust
Copy link
Contributor Author

#858
위 pr 로 이전 하여 closed 합니다.

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

Successfully merging this pull request may close these issues.

3 participants