From 92d03e1b7a43cdf7f1b567a1854bc3f15f80352e Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Fri, 21 Feb 2025 14:42:30 +0100 Subject: [PATCH] Adjust estimated replay operation cost for more tensor attribute vectors. --- .../vespa/searchcore/proton/attribute/flushableattribute.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/searchcore/src/vespa/searchcore/proton/attribute/flushableattribute.cpp b/searchcore/src/vespa/searchcore/proton/attribute/flushableattribute.cpp index 11f3f759126e..bc31c05247f7 100644 --- a/searchcore/src/vespa/searchcore/proton/attribute/flushableattribute.cpp +++ b/searchcore/src/vespa/searchcore/proton/attribute/flushableattribute.cpp @@ -173,8 +173,7 @@ FlushableAttribute::FlushableAttribute(AttributeVectorSP attr, { _lastStats.setPathElementsToLog(8); auto &config = attr->getConfig(); - if (config.basicType() == search::attribute::BasicType::Type::TENSOR && - config.tensorType().is_dense() && config.hnsw_index_params().has_value()) + if (config.basicType() == search::attribute::BasicType::Type::TENSOR && config.hnsw_index_params().has_value()) { _replay_operation_cost = 400.0; // replaying operations to hnsw index is 400 times more expensive than reading from tls }