ClickHouse/docs/en/database_engines/lazy.md

14 lines
452 B
Markdown
Raw Normal View History

2019-10-08 08:31:12 +00:00
# Lazy
2019-10-08 19:15:30 +00:00
Works like `Ordinary`, but keeps tables in RAM only `expiration_time_in_seconds` seconds after last access. Can be used only with \*Log tables.
2019-10-08 08:31:12 +00:00
2019-10-08 19:15:30 +00:00
It's optimized for storing many small \*Log tables, for which there is a long time interval between accesses.
2019-10-08 08:31:12 +00:00
## Creating a Database
```
CREATE DATABASE testlazy ENGINE = Lazy(expiration_time_in_seconds);
```
2019-10-09 19:19:50 +00:00
2020-01-30 10:34:55 +00:00
[Original article](https://clickhouse.tech/docs/en/database_engines/lazy/) <!--hide-->