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

feat: Enable data preload write through #189

Merged
merged 5 commits into from
Apr 11, 2023
Merged

Conversation

Clark0
Copy link
Collaborator

@Clark0 Clark0 commented Mar 24, 2023

Changelog category :

  • New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Write through cache strategy,
add new settings to enable writing to disk cache while inserting data

  • enable_preload_parts
  • enable_async_preload_parts
    ...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@@ -237,7 +237,7 @@ void CloudMergeTreeBlockOutputStream::writeSuffixImpl()
{
/// auto testlog = std::make_shared<TestLog>(const_cast<Context &>(context));
/// TEST_START(testlog);
/// tryPreloadChecksumsAndPrimaryIndex(storage, std::move(preload_parts), ManipulationType::Insert, context);
tryPreload(context, storage, preload_parts);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to support finish the preload before parts become visible?

@@ -483,4 +484,37 @@ void CnchDataWriter::publishStagedParts(
commitDumpedParts(items);
}

void tryPreload(
Copy link
Contributor

Choose a reason for hiding this comment

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

How does mergemutate task preload the part?

@Clark0 Clark0 force-pushed the preload-dev branch 4 times, most recently from 5b5d638 to f4778d7 Compare April 6, 2023 05:48
/// tryPreloadChecksumsAndPrimaryIndex(storage, std::move(preload_parts), ManipulationType::Insert, context);
/// TEST_END(testlog, "Finish tryPreloadChecksumsAndPrimaryIndex in batch mode");
}
cnch_writer.preload(preload_parts);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it duplicated? since it has been preloaded before commit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

where do you refer to the previous preload? here it's actually preload after commit.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see the preload is also called such as commit part.

@hustnn hustnn merged commit dfcb2a1 into ByConity:master Apr 11, 2023
1 check passed
@hustnn hustnn mentioned this pull request Apr 20, 2023
17 tasks
@hustnn hustnn added this to the GA Release milestone Apr 20, 2023
@WillemJiang WillemJiang changed the title enable data preload write through feat: Enable data preload write through May 17, 2023
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.

None yet

2 participants