From db6721300aea50f0235fa802f50891234b546638 Mon Sep 17 00:00:00 2001 From: Pipeline Database Date: Tue, 30 Sep 2025 18:40:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=87=AA=E5=8A=A8=E5=A4=84?= =?UTF-8?q?=E7=90=86=E7=A4=BA=E4=BE=8B=E5=92=8C=E5=BF=BD=E7=95=A5=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新 examples/auto-processing/main.go 中的示例代码 - 在 .gitignore 中添加 examples/test-empty/ 目录忽略规则 --- .gitignore | 3 +++ examples/auto-processing/main.go | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 919f590..08e3021 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,6 @@ Thumbs.db # YAML 检查配置 .yamllint + +# 测试目录 +examples/test-empty/ diff --git a/examples/auto-processing/main.go b/examples/auto-processing/main.go index 8941fae..69c23ac 100644 --- a/examples/auto-processing/main.go +++ b/examples/auto-processing/main.go @@ -117,7 +117,7 @@ func main() { signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM) // 启动数据生产者 - go dataProducer(ctx, pdb) + // go dataProducer(ctx, pdb) // 暂时注释掉,测试空数据库性能 // 启动状态监控 go statusMonitor(ctx, pdb) @@ -126,7 +126,8 @@ func main() { go systemMonitor(ctx) fmt.Println("📊 自动处理已启动,按 Ctrl+C 停止...") - fmt.Println("🔍 观察数据的自动状态流转: Hot → Warm → Cold") + fmt.Println("🔍 测试空数据库性能 - 没有数据生产者") + fmt.Println("💻 观察系统资源监控和空闲状态") fmt.Println() // 等待中断信号