ClickHouse/docs/en/engines/table-engines/special/set.md

24 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.

---
toc_priority: 39
toc_title: Set
---
# Set Table Engine {#set}
A data set that is always in RAM. It is intended for use on the right side of the `IN` operator (see the section “IN operators”).
You can use `INSERT` to insert data in the table. New elements will be added to the data set, while duplicates will be ignored.
But you cant perform `SELECT` from the table. The only way to retrieve data is by using it in the right half of the `IN` operator.
Data is always located in RAM. For `INSERT`, the blocks of inserted data are also written to the directory of tables on the disk. When starting the server, this data is loaded to RAM. In other words, after restarting, the data remains in place.
For a rough server restart, the block of data on the disk might be lost or damaged. In the latter case, you may need to manually delete the file with damaged data.
### Limitations and Settings {#join-limitations-and-settings}
When creating a table, the following settings are applied:
- [persistent](../../../operations/settings/settings.md#persistent)
[Original article](https://clickhouse.com/docs/en/operations/table_engines/set/) <!--hide-->