StevenLuMT opened a new pull request #3103:
URL: https://github.com/apache/bookkeeper/pull/3103
Descriptions of the changes in this PR:
### Motivation
add async mode for :entry location index's rocksdb write:
1) default sync mode: not change the original logic
2) async mode : need update config to open, this mode is to speed up writing
sync is different from async:
- sync mode:
1. create a batch;
2. add msg to the batch
3. call method(batch.flush) to flush the batch
- sync mode:
1. just call method(locationsDb.sync) to write the data
2. the rocksdb server will be timed to flush the data
### Changes
1. add async or sync for :location rocksdb write
2. add switch to open this feature, default not open, use default sync
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]