SELECT dictGetString('database_for_dict.direct_dict', 'c', toUInt64(number)) AS xxx
FROM numbers(1000000)
WHERE xxx = ''
0 rows in set. Elapsed: 2.444 sec. Processed 1.05 million rows, 8.38 MB (428.85 thousand rows/s., 3.43 MB/s.)
SELECT dictGetString('database_for_dict.direct_dict', 'c', toUInt64(cityHash64(number+100000000))) AS xxx
FROM numbers(1000000)
WHERE xxx = ''
0 rows in set. Elapsed: 2.708 sec. Processed 1.05 million rows, 8.38 MB (386.99 thousand rows/s., 3.10 MB/s.)
SELECT dictGetString('database_for_dict.direct_dict', 'c', toUInt64(cityHash64(number)%5555555)) AS xxx
FROM numbers(1000000)
WHERE xxx = ''
0 rows in set. Elapsed: 3.507 sec. Processed 1.05 million rows, 8.38 MB (298.84 thousand rows/s., 2.39 MB/s.)