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(bulk_load): set move_files as true while ingest files #864

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

hycdong
Copy link
Contributor

@hycdong hycdong commented Jan 5, 2022

What problem does this PR solve?

This pull request set move_files=true for IngestExternalFileOptions. IngestExternalFileOptions is the option for ingest operation.

As RocksDB code(https://github.com/facebook/rocksdb/blob/v6.6.4/include/rocksdb/options.h#L1443) show:

struct IngestExternalFileOptions {
// Can be set to true to move the files instead of copying them.
bool move_files = false;
...
}

If IngestExternalFileOptions.move_files = true, ingest will move files, and its default value is false.

I did tests and found that setting move_files as true can speed up ingestion, more details can be found in Test section.

Tests

Target table have 32 partitions, each partition has 16G data to be ingested. In my test, all partitions will ingest at the same time:

  • move_files = false, ingestion_time(s) = 420
  • move_files = true, ingestion_time(s) = 180

Besides, move_files can decrease disk write throughput during ingestion.

@hycdong hycdong changed the title feat(bulk_load): set move_files=true while ingest files feat(bulk_load): set move_files as true while ingest files Jan 5, 2022
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