ClickHouse/docs/zh/operations/table_engines/tinylog.md
谢磊 5498ed56fd [WIP] translate about table-engines (#3731)
* init zh/operations translate

* finish table_engines about Integrations part

* add table_engine index

* finish table_engines -- For Small Data -- log、tinylog、memory

* finish table_engines -- For Small Data -- buffer,external_data
2018-12-04 19:12:56 +03:00

16 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# TinyLog
最简单的表引擎,用于将数据存储在磁盘上。每列都存储在单独的压缩文件中。写入时,数据将附加到文件末尾。
并发数据访问不受任何限制:
- 如果同时从表中读取并在不同的查询中写入,则读取操作将抛出异常
- 如果同时写入多个查询中的表,则数据将被破坏。
这种表引擎的典型用法是 write-once首先只写入一次数据然后根据需要多次读取。查询在单个流中执行。换句话说此引擎适用于相对较小的表建议最多1,000,000行。如果您有许多小表则使用此表引擎是适合的因为它比Log引擎更简单需要打开的文件更少。当您拥有大量小表时可能会导致性能低下但在可能已经在其它 DBMS 时使用过,则您可能会发现切换使用 TinyLog 类型的表更容易。**不支持索引**。
在 Yandex.Metrica 中TinyLog 表用于小批量处理的中间数据。
[Original article](https://clickhouse.yandex/docs/zh/operations/table_engines/tinylog/) <!--hide-->