Skip to content

Commit

Permalink
Update 20-fasterkv-basics.md
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc authored Feb 20, 2021
1 parent 53fe294 commit 20fdc91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/_docs/20-fasterkv-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ FasterKV exposes a Log interface (`store.Log`) to perform different kinds of ope
* Access various pre-defined address points: `store.Log.BeginAddress`, `store.Log.HeadAddress`, `store.Log.SafeReadOnlyAddress`, `store.Log.TailAddress`
* Truncate the log until, but not including, untilAddress: `store.Log.ShiftBeginAddress(untilAddress)`
* You can use this to delete the database contents in bulk: `store.Log.ShiftBeginAddress(store.Log.TailAddress)`
* Deletion of the log on disk only occurs at segment boundary (file) granularity, as per `SegmentSizeBits` defined in log settings.
* Shift log head address to prune memory foorprint of hybrid log: `store.Log.ShiftHeadAddress(untilAddress, wait: true)`
* Shift log read-only address to make records immutable and flush them to disk: `store.Log.ShiftReadOnlyAddress(untilAddress, wait: true)`
* Flush log until current tail (records are still retained in memory): `store.Log.Flush(wait: true)`
Expand Down

0 comments on commit 20fdc91

Please sign in to comment.