simple

command
v0.0.0-...-dc878bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

examples/simple/main.go

Simple Write and Query Example

本示例展示如何使用 microts 写入和查询数据。

配置说明:

  • MemTableCfg.MaxCount = 100:MemTable 最多存储 100 条数据,超出后触发刷盘
  • MemTableCfg.IdleDurationNanos = 5 秒:空闲 5 秒后触发刷盘

数据流程:

写入 → WAL → MemTable → (触发刷盘) → SSTable

运行方式:

cd examples/simple && go run main.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL