mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
18 lines
535 B
Markdown
18 lines
535 B
Markdown
---
|
||
slug: /en/engines/database-engines/lazy
|
||
sidebar_label: Lazy
|
||
sidebar_position: 20
|
||
---
|
||
|
||
# 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.com/docs/en/database_engines/lazy/) <!--hide-->
|