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

FEATURE: Add mset API. #294

Merged
merged 1 commit into from
Aug 16, 2024
Merged

FEATURE: Add mset API. #294

merged 1 commit into from
Aug 16, 2024

Conversation

uhm0311
Copy link
Collaborator

@uhm0311 uhm0311 commented Aug 9, 2024

๐Ÿ”— Related Issue

โŒจ๏ธ What I did

  • ๊ธฐ์กด mget๊ณผ ๋™์ผํ•œ ๋ฐฉ์‹์œผ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” mset API๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
  • memcached_mset() ํ•จ์ˆ˜ ํ˜ธ์ถœ ํ›„ ์บ์‹œ ํ‚ค ๊ฐœ์ˆ˜๋งŒํผ memcached_fetch_storage_result()๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค.
  • mset ํ˜ธ์ถœ ์‹œ ์š”์ฒญ์„ ์ผ๊ด„์ ์œผ๋กœ ๋ณด๋‚ธ ํ›„์— ์‘๋‹ต์„ ์ผ๊ด„์ ์œผ๋กœ ์ฝ์Šต๋‹ˆ๋‹ค.
  • madd, mreplace์™€ ๊ฐ™์€ ๊ธฐํƒ€ API๋Š” ์ถ”ํ›„์— ์ถ”๊ฐ€ํ•  ์˜ˆ์ •์ž…๋‹ˆ๋‹ค.

@uhm0311 uhm0311 force-pushed the uhm0311/develop branch 3 times, most recently from 9f64858 to 3d1a64f Compare August 9, 2024 09:01
@ing-eoking

This comment was marked as resolved.

tests/storage Outdated Show resolved Hide resolved

using namespace libtest;

#include "tests/storage.h"
Copy link
Collaborator

@ing-eoking ing-eoking Aug 11, 2024

Choose a reason for hiding this comment

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

ํ…Œ์ŠคํŠธ๋ฅผ ๋ณ„๋„๋กœ ๋ถ„๋ฆฌํ•˜๋Š” ๊ฒƒ์€ ์ข‹์œผ๋‚˜ ์ง€๊ธˆ์€ Single storage ํ…Œ์ŠคํŠธ ๋กœ์ง ์ฃผ๋ณ€์— ์œ„์น˜์‹œํ‚ค๋Š” ๊ฒƒ์ด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๊ทธ๋Ÿฐ ๋‹ค์Œ ๋‚˜์ค‘์— Storage ์—ฐ์‚ฐ ํ…Œ์ŠคํŠธ ์ „์ฒด๋ฅผ ๋ณ„๋„ ๋ชจ๋“ˆ๋กœ ์˜ฎ๊ธฐ๋Š” ๊ฑด ์–ด๋–ค๊ฐ€์š”?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

mset ํ•จ์ˆ˜์— ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ์žˆ์„ ๊ฒฝ์šฐ ๊ฐœ๋ณ„ ํ…Œ์ŠคํŠธ๋Š” ๊ณ„์† ์ง„ํ–‰ํ•ด์•ผ ํ•˜๋‹ˆ ๋ชจ๋“  ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ๋งˆ๋ฌด๋ฆฌ๋œ ํ›„์— ๋ฐ˜์˜ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/fetch.cc Outdated Show resolved Hide resolved
@ing-eoking
Copy link
Collaborator

@namsic @jhpark816
๋ฆฌ๋ทฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

Copy link
Collaborator

@namsic namsic left a comment

Choose a reason for hiding this comment

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

์ผ๋ถ€ ๋ฆฌ๋ทฐ

libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
Copy link
Contributor

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

์ผ๋ถ€ ๋ฆฌ๋ทฐ.

๊ตฌํ˜„์„ ์ƒ๊ฐํ•ด ๋ณด๋‹ˆ, ๋ณต์žกํ•œ ์š”์†Œ๊ฐ€ ์กด์žฌํ•˜๋„ค์š”.

libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/fetch.cc Outdated Show resolved Hide resolved
libmemcached/fetch.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
@uhm0311 uhm0311 force-pushed the uhm0311/develop branch 4 times, most recently from 9fa7443 to 719337e Compare August 12, 2024 09:17
Copy link
Contributor

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

์ผ๋ถ€ ๋ฆฌ๋ทฐ

libmemcached/storage.cc Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/memcached.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
Copy link
Collaborator

@ing-eoking ing-eoking left a comment

Choose a reason for hiding this comment

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

์•„์ง ๋ ˆํ”Œ๋ฆฌ์ผ€์ด์…˜ ์ชฝ์€ ํ™•์ธ์ด ๋œ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
Copy link
Contributor

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

์ผ๋ถ€ ๋ฆฌ๋ทฐ

libmemcached/storage.cc Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
Copy link
Contributor

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

์ถ”๊ฐ€ ๋ฆฌ๋ทฐ

libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
@namsic
Copy link
Collaborator

namsic commented Aug 16, 2024

mset PR์ด ๋‘ ๊ฐœ์ธ๋ฐ, ๋‘˜ ๋ชจ๋‘ ๊ฐ๊ฐ ๋ฆฌ๋ทฐํ•ด์•ผ ํ•˜๋‚˜์š”?

@jhpark816
Copy link
Contributor

@namsic
์—ฌ๊ธฐ PR๋งŒ ๋ฆฌ๋ทฐํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

Copy link
Contributor

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

์ถ”๊ฐ€ ๋ฆฌ๋ทฐ

libmemcached/storage.cc Show resolved Hide resolved
@jhpark816
Copy link
Contributor

์ถ”๊ฐ€ ์‚ฌํ•ญ์œผ๋กœ number_of_req ๊ฐ’์ด ๋„ˆ๋ฌด ํฌ๋ฉด, long query๊ฐ€ ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
limit ์ง€์ •ํ•˜๋Š” ๊ฒƒ์ด ์–ด๋–ค๊ฐ€์š”?

@uhm0311 uhm0311 force-pushed the uhm0311/develop branch 3 times, most recently from 68005f1 to 855ad4c Compare August 16, 2024 06:10
@uhm0311 uhm0311 requested a review from jhpark816 August 16, 2024 06:20
Copy link
Contributor

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

๋ฆฌ๋ทฐ ์™„๋ฃŒ

libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
@uhm0311 uhm0311 force-pushed the uhm0311/develop branch 2 times, most recently from bb386e6 to 52ca5ed Compare August 16, 2024 06:57
@uhm0311 uhm0311 requested a review from jhpark816 August 16, 2024 07:10
Copy link
Contributor

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

๋ฆฌ๋ทฐ ์™„๋ฃŒ

libmemcached/storage.cc Show resolved Hide resolved
libmemcached/storage.cc Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
libmemcached/storage.cc Outdated Show resolved Hide resolved
@uhm0311 uhm0311 force-pushed the uhm0311/develop branch 2 times, most recently from 09a4d99 to e5be058 Compare August 16, 2024 07:33
@uhm0311 uhm0311 requested a review from jhpark816 August 16, 2024 07:33
@uhm0311 uhm0311 force-pushed the uhm0311/develop branch 2 times, most recently from 48147c6 to 8f55a92 Compare August 16, 2024 08:33
@jhpark816
Copy link
Contributor

@namsic ์ตœ์ข… ๋ฆฌ๋ทฐํ•˜์„ธ์š”.

libmemcached/storage.cc Outdated Show resolved Hide resolved
@uhm0311 uhm0311 requested a review from jhpark816 August 16, 2024 08:53
@jhpark816 jhpark816 merged commit 3dd6e1f into naver:develop Aug 16, 2024
1 check passed
@uhm0311 uhm0311 mentioned this pull request Aug 19, 2024
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.

4 participants