ClickHouse/docs/zh/engines/database-engines/lazy.md
Tom Bombadil 1292cddab5
Update lazy.md
optimize toc title for this doc
2020-06-18 22:42:10 +08:00

17 lines
509 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
toc_priority: 31
toc_title: "延时引擎"
---
# 延时引擎Lazy {#lazy}
在距最近一次访问间隔`expiration_time_in_seconds`时间段内,将表保存在内存中,仅适用于 \*Log引擎表
由于针对这类表的访问间隔较长,对保存大量小的 \*Log引擎表进行了优化
## 创建数据库 {#creating-a-database}
CREATE DATABASE testlazy ENGINE = Lazy(expiration_time_in_seconds);
[原始文章](https://clickhouse.tech/docs/en/database_engines/lazy/) <!--hide-->