mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-06 15:42:39 +00:00
1292cddab5
optimize toc title for this doc
17 lines
509 B
Markdown
17 lines
509 B
Markdown
---
|
||
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-->
|