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

INTERNAL: Limit bulk get keys size #847

Closed
wants to merge 1 commit into from

Conversation

cheesecrust
Copy link
Collaborator

@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
Collaborator 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
Collaborator 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
Collaborator 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