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

[FLASH-762] Skippable place #373

Closed
wants to merge 5 commits into from
Closed

[FLASH-762] Skippable place #373

wants to merge 5 commits into from

Conversation

flowbehappy
Copy link
Contributor

@flowbehappy flowbehappy changed the title [FLASH-762] [DM] Skippable place [FLASH-762] [HOLD] Skippable place Dec 31, 2019
@flowbehappy flowbehappy changed the title [FLASH-762] [HOLD] Skippable place [FLASH-762] Skippable place Dec 31, 2019
@flowbehappy

This comment has been minimized.

@@ -45,6 +45,7 @@ struct DMContext : private boost::noncopyable
const size_t stable_chunk_rows;

const bool enable_logical_split;
const bool enable_skippable_place;
Copy link
Contributor

Choose a reason for hiding this comment

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

We should fix broken tests after add field in DMContext.

@@ -496,8 +496,9 @@ BlockInputStreams DeltaMergeStore::read(const Context & db_context,
}
#endif

auto after_segment_read
= [&](const DMContextPtr & dm_context_, const SegmentPtr & segment_) { this->checkSegmentUpdate<false>(dm_context_, segment_); };
// auto after_segment_read
Copy link
Contributor

Choose a reason for hiding this comment

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

Why disable checkSegmentUpdate in read?

@@ -1043,8 +1043,8 @@ void DT_CLASS::addDelete(const UInt64 rid)
std::tie(leaf, delta) = findLeftLeaf<true>(rid);
std::tie(pos, delta) = leaf->searchRid(rid, delta);

bool merge = false;
size_t merge_pos;
bool merge = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

This changes have applied in #382, please rebase this branch.

{
auto mvs = std::make_shared<DeltaValueSpace>();
auto mvs = std::make_shared<DeltaValueSpace>(0);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is better to hardcode handle col position only in Segment. Pass it as a param to DiskValueSpace:: getValueSpace.

}
else
{
auto [actual_offset, actual_limit]
Copy link
Contributor

Choose a reason for hiding this comment

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

Better add comment indicates that, inside each chunk we ensure data is sort by handle & version in ascending order.

}

auto block = doRead();
if (block)
Copy link
Contributor

Choose a reason for hiding this comment

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

We can move this if check into beforeReturnBlock

{
if constexpr (DM_RUN_CHECK)
{
++num_read;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this line be moved to read()?

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.

2 participants