ClickHouse/docs/en/database_engines/lazy.md

12 lines
363 B
Markdown
Raw Normal View History

2019-10-08 08:31:12 +00:00
# Lazy
Works like `Ordinary`, but 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 are a long time interval between accesses.
## Creating a Database
```
CREATE DATABASE testlazy ENGINE = Lazy(expiration_time_in_seconds);
```