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

MSET change it to batch write instead of batch per key #1634

Merged
merged 9 commits into from
Aug 7, 2023

Conversation

enjoy-binbin
Copy link
Member

@enjoy-binbin enjoy-binbin commented Aug 4, 2023

The previous implementation which wrote the batch per key,
we should change it to a single batch. Also use the multi-key
lock before the write operations instead of inside the loop.

This is mention in #1631, found by hulk.

The previous implementation which wrote the batch per key,
we should change it to a single batch.
git-hulk
git-hulk previously approved these changes Aug 4, 2023
src/types/redis_string.cc Outdated Show resolved Hide resolved
src/types/redis_string.cc Outdated Show resolved Hide resolved
git-hulk
git-hulk previously approved these changes Aug 6, 2023
xiaobiaozhao
xiaobiaozhao previously approved these changes Aug 6, 2023
Copy link
Member

@mapleFU mapleFU left a comment

Choose a reason for hiding this comment

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

Rest LGTM

src/types/redis_string.cc Outdated Show resolved Hide resolved
src/types/redis_string.cc Show resolved Hide resolved
@enjoy-binbin enjoy-binbin dismissed stale reviews from xiaobiaozhao and git-hulk via 3669db6 August 7, 2023 03:27
src/types/redis_string.cc Show resolved Hide resolved
@PragmaTwice PragmaTwice merged commit 0e73fec into apache:unstable Aug 7, 2023
26 checks passed
@enjoy-binbin enjoy-binbin deleted the mset_batch_write branch August 7, 2023 08:25
p1u3o pushed a commit to p1u3o/incubator-kvrocks that referenced this pull request Aug 15, 2023
The previous implementation which wrote the batch per key,
we should change it to a single batch. Also use the multi-key
lock before the write operations instead of inside the loop.

This is mention in apache#1631, found by hulk.

Co-authored-by: mwish <1506118561@qq.com>
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.

5 participants