cache_ints_dictionary.xml 1.9 KB
Newer Older
N
Nikita Mikhaylov 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
<yandex>
<dictionary>
    <name>anime_dict</name>
    <source>
        <clickhouse>
            <host>dictionary_node</host>
            <port>9000</port>
            <user>default</user>
            <password></password>
            <db>test</db>
            <table>ints</table>
        </clickhouse>
    </source>
    <lifetime>
        <max>2</max>
        <min>1</min>
    </lifetime>
    <layout>
        <cache>
            <size_in_cells>10000</size_in_cells>
            <max_update_queue_size>10000</max_update_queue_size>
            <allow_read_expired_keys>1</allow_read_expired_keys>
            <update_queue_push_timeout_milliseconds>10</update_queue_push_timeout_milliseconds>
        </cache>
    </layout>
    <structure>
        <id>
            <name>key</name>
        </id>
        <attribute>
            <name>i8</name>
            <type>Int8</type>
            <null_value>0</null_value>
        </attribute>
        <attribute>
            <name>i16</name>
            <type>Int16</type>
            <null_value>0</null_value>
        </attribute>
        <attribute>
            <name>i32</name>
            <type>Int32</type>
            <null_value>0</null_value>
        </attribute>
        <attribute>
            <name>i64</name>
            <type>Int64</type>
            <null_value>0</null_value>
        </attribute>
        <attribute>
            <name>u8</name>
            <type>UInt8</type>
            <null_value>0</null_value>
        </attribute>
        <attribute>
            <name>u16</name>
            <type>UInt16</type>
            <null_value>0</null_value>
        </attribute>
        <attribute>
            <name>u32</name>
            <type>UInt32</type>
            <null_value>0</null_value>
        </attribute>
        <attribute>
            <name>u64</name>
            <type>UInt64</type>
            <null_value>0</null_value>
        </attribute>
    </structure>
</dictionary>
</yandex>