Skip to main content
Skip to main content
Edit this page

hashed_array dictionary layout types

hashed_array

The dictionary is completely stored in memory. Each attribute is stored in an array. The key attribute is stored in the form of a hashed table where value is an index in the attributes array. 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:

LAYOUT(HASHED_ARRAY([SHARDS 1]))

complex_key_hashed_array

This type of storage is for use with composite keys. Similar to hashed_array.

Configuration example:

LAYOUT(COMPLEX_KEY_HASHED_ARRAY([SHARDS 1]))