예제 #1
0
파일: options.go 프로젝트: C0rWin/fabric
// PrepareForBulkLoad prepare the DB for bulk loading.
//
// All data will be in level 0 without any automatic compaction.
// It's recommended to manually call CompactRange(NULL, NULL) before reading
// from the database, because otherwise the read can be very slow.
func (opts *Options) PrepareForBulkLoad() {
	C.rocksdb_options_prepare_for_bulk_load(opts.c)
}
예제 #2
0
파일: options.go 프로젝트: butine/research
// Set appropriate parameters for bulk loading.
//
// All data will be in level 0 without any automatic compaction.
// It's recommended to manually call CompactRange(NULL, NULL) before reading
// from the database, because otherwise the read can be very slow.
func (self *Options) PrepareForBulkLoad() {
	C.rocksdb_options_prepare_for_bulk_load(self.c)
}