mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
d91c97d15d
* Replace underscores with hyphens * remove temporary code * fix style check * fix collapse
17 lines
496 B
Markdown
17 lines
496 B
Markdown
---
|
||
toc_priority: 31
|
||
toc_title: Lazy
|
||
---
|
||
|
||
# Lazy {#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 {#creating-a-database}
|
||
|
||
CREATE DATABASE testlazy ENGINE = Lazy(expiration_time_in_seconds);
|
||
|
||
[Original article](https://clickhouse.tech/docs/en/database_engines/lazy/) <!--hide-->
|