ClickHouse/docs/zh/engines/database-engines/lazy.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
445 B
Markdown
Raw Normal View History

---
2022-08-26 19:07:59 +00:00
slug: /zh/engines/database-engines/lazy
2022-04-10 23:08:18 +00:00
sidebar_position: 31
sidebar_label: Lazy
---
# Lazy {#lazy}
在最后一次访问之后只在RAM中保存`expiration_time_in_seconds`秒。只能用于\*Log表。
它是为存储许多小的\*Log表而优化的对于这些表访问之间有很长的时间间隔。
## 创建数据库 {#creating-a-database}
``` sql
CREATE DATABASE testlazy ENGINE = Lazy(expiration_time_in_seconds);
```