Add appropriate parameters to make bulk-load go faster.

Summary:
1. Create only 2 levels so that manual compactions are fast.
2. Set target file size to a large value

Test Plan: make clean check

Reviewers: kailiu, zshao

Reviewed By: zshao

CC: leveldb

Differential Revision: https://reviews.facebook.net/D9231
This commit is contained in:
Dhruba Borthakur
2013-03-08 09:19:24 -08:00
parent 3b6653b1f8
commit 469724be7f
2 changed files with 24 additions and 1 deletions

View File

@@ -347,7 +347,7 @@ struct Options {
// Set appropriate parameters for bulk loading.
// The reason that this is a function that returns "this" instead of a
// constructure is to enable chaining of multiple similar calls in the future.
// constructor is to enable chaining of multiple similar calls in the future.
//
// All data will be in level 0 without any automatic compaction.
// It's recommended to manually call CompactRange(NULL, NULL) before reading