Skip to content

Commit

Permalink
Merge pull request #33387 from vespa-engine/toregge/adjust-estimated-…
Browse files Browse the repository at this point in the history
…replay-operation-cost-for-more-tensor-attribute-vectors

Adjust estimated replay operation cost for more tensor attribute vect…
  • Loading branch information
vekterli authored Feb 21, 2025
2 parents 339aa48 + 92d03e1 commit 9a29cdf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9a29cdf

Please sign in to comment.