CacheDictionary request only unique keys from source

This commit is contained in:
Maksim Kita 2023-07-07 12:26:15 +03:00
parent 89fab1ef93
commit 23bd23802f

View File

@ -552,13 +552,14 @@ void CacheDictionary<dictionary_key_type>::update(CacheDictionaryUpdateUnitPtr<d
if (key_index_to_state_from_storage[i].isExpired()
|| key_index_to_state_from_storage[i].isNotFound())
{
auto requested_key = requested_keys[i];
auto [_, inserted] = not_found_keys.insert(requested_key);
if (inserted) {
if constexpr (dictionary_key_type == DictionaryKeyType::Simple)
requested_keys_vector.emplace_back(requested_keys[i]);
else
requested_complex_key_rows.emplace_back(i);
auto requested_key = requested_keys[i];
not_found_keys.insert(requested_key);
}
}
}