ClickHouse/docs/en/database_engines/lazy.md
2020-02-03 18:12:03 +03:00

14 lines
425 B
Markdown

# Lazy
Keeps tables in RAM only `expiration_time_in_seconds` seconds after last access. Can be used only with \*Log tables.
It's optimized for storing many small \*Log tables, for which there is a long time interval between accesses.
## Creating a Database
```
CREATE DATABASE testlazy ENGINE = Lazy(expiration_time_in_seconds);
```
[Original article](https://clickhouse.tech/docs/en/database_engines/lazy/) <!--hide-->