Class WriteAheadLogOptions
Write Ahead Log Options. The options will be used for creation of new Write Ahead Logs. Existing WALs will be created with their existing options.
Inherited Members
Namespace: Tenray.ZoneTree.Options
Assembly: ZoneTree.dll
Syntax
public sealed class WriteAheadLogOptions
Properties
| Improve this Doc View SourceAsyncCompressedModeOptions
Options for async-compressed mode.
Declaration
public AsyncCompressedModeOptions AsyncCompressedModeOptions { get; set; }
Property Value
Type | Description |
---|---|
AsyncCompressedModeOptions |
CompressionBlockSize
WAL compressin block size. New WALs will be created based on this setting. Default value = 256 KB
Declaration
public int CompressionBlockSize { get; set; }
Property Value
Type | Description |
---|---|
int |
CompressionLevel
The compression level of the selected compression method. Default is LZ4Fastest.
Declaration
public int CompressionLevel { get; set; }
Property Value
Type | Description |
---|---|
int |
CompressionMethod
The compression method for the WALs with compression enabled. Default is LZ4.
Declaration
public CompressionMethod CompressionMethod { get; set; }
Property Value
Type | Description |
---|---|
CompressionMethod |
CustomOptions
The custom options are reserved to be used by custom write ahead log providers.
Declaration
public object CustomOptions { get; set; }
Property Value
Type | Description |
---|---|
object |
EnableIncrementalBackup
Incremental backup is a WAL feature which moves all WAL data to another incremental log file when it is compacted. It is required to compact WAL in memory without data loss in persistent device. Used by Optimistic Transactional ZoneTree for transaction log compaction. Enabling backup will make transactions slower. Default value is false.
Declaration
public bool EnableIncrementalBackup { get; set; }
Property Value
Type | Description |
---|---|
bool |
SyncCompressedModeOptions
Options for sync-compressed mode.
Declaration
public SyncCompressedModeOptions SyncCompressedModeOptions { get; set; }
Property Value
Type | Description |
---|---|
SyncCompressedModeOptions |
WriteAheadLogMode
The default write ahead log mode. New WALs will be created based on this setting. Default value is AsyncCompressed.
Declaration
public WriteAheadLogMode WriteAheadLogMode { get; set; }
Property Value
Type | Description |
---|---|
WriteAheadLogMode |