ClickHouse/docs/en/engines/table-engines/log-family/log.md

13 lines
1015 B
Markdown
Raw Normal View History

2020-04-03 13:23:32 +00:00
---
toc_priority: 33
toc_title: Log
---
2020-03-20 10:10:48 +00:00
# Log {#log}
2017-04-03 19:49:50 +00:00
The engine belongs to the family of `Log` engines. See the common properties of `Log` engines and their differences in the [Log Engine Family](../../../engines/table-engines/log-family/index.md) article.
`Log` differs from [TinyLog](../../../engines/table-engines/log-family/tinylog.md) in that a small file of "marks" resides with the column files. These marks are written on every data block and contain offsets that indicate where to start reading the file in order to skip the specified number of rows. This makes it possible to read table data in multiple threads.
For concurrent data access, the read operations can be performed simultaneously, while write operations block reads and each other.
The `Log` engine does not support indexes. Similarly, if writing to a table failed, the table is broken, and reading from it returns an error. The `Log` engine is appropriate for temporary data, write-once tables, and for testing or demonstration purposes.