runtime switches of the table storage layer. the jsonl layout is the default, the legacy whole table json file is kept for compatibility.
StorageOptions
01 Syntax
JSql.Storage.StorageOptions
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| CreateStoreOptions | 1 | build the options object handed over to the format-agnostic text line store engine |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| MergeIdleSeconds | 1 | how long the engine must stay idle before the pending WAL records are merged back into the data file. |
| FsyncEachWrite | 1 | fsync the WAL on every write. |
| MergeAfterOperations | 1 | merge the pending WAL once the operation count reaches this value |
| Verbose | 1 | write the store diagnostics(index rebuild, torn tail repair) to stderr |
| LegacyJson | 1 | create new tables as legacy single file json instead of the jsonl layout |
| Format | 1 | 新建表默认使用的物理存储格式。已有的表按其数据文件扩展名自动识别, 本选项只影响“尚不存在数据文件的新表”。 |
| IndexGranularity | 1 | sparse line index granularity of the data file |
04 Members
CreateStoreOptions
build the options object handed over to the format-agnostic text line store engine
MergeIdleSeconds
how long the engine must stay idle before the pending WAL records are merged back into the data file. <= 0 disables the background merge.
FsyncEachWrite
fsync the WAL on every write. false is much faster but only survives a process crash; true also survives a power failure.
MergeAfterOperations
merge the pending WAL once the operation count reaches this value
Verbose
write the store diagnostics(index rebuild, torn tail repair) to stderr
LegacyJson
create new tables as legacy single file json instead of the jsonl layout
Format
新建表默认使用的物理存储格式。已有的表按其数据文件扩展名自动识别, 本选项只影响“尚不存在数据文件的新表”。
IndexGranularity
sparse line index granularity of the data file