hashed
The dictionary is completely stored in memory in the form of a hash table. The dictionary can contain any number of elements with any identifiers. In practice, the number of keys can reach tens of millions of items. The dictionary key has the UInt64 type. All types of sources are supported. When updating, data (from a file or from a table) is read in its entirety. Configuration example:- DDL
- Configuration file
Configuration example with settings:
- DDL
- Configuration file
sparse_hashed
Similar tohashed, but uses less memory in favor more CPU usage.
The dictionary key has the UInt64 type.
Configuration example:
- DDL
- Configuration file
It is also possible to use
shards for this type of dictionary, and again it is more important for sparse_hashed then for hashed, since sparse_hashed is slower.
complex_key_hashed
This type of storage is for use with composite keys. Similar tohashed.
Configuration example:
- DDL
- Configuration file
complex_key_sparse_hashed
This type of storage is for use with composite keys. Similar to sparse_hashed. Configuration example:- DDL
- Configuration file