// 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) }
// 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) }