Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
aoiasd committed Nov 21, 2024
1 parent 2159526 commit 47c4a78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/core/src/segcore/ChunkedSegmentSealedImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <algorithm>
#include <cstdint>
#include <ctime>
#include <filesystem>
#include <memory>
#include <string>
Expand Down Expand Up @@ -938,6 +939,7 @@ ChunkedSegmentSealedImpl::vector_search(SearchInfo& search_info,
get_bit(field_data_ready_bitset_, field_id),
"Field Data is not loaded: " + std::to_string(field_id.get()));
AssertInfo(num_rows_.has_value(), "Can't get row count value");
LOG_INFO("test-- search brute force seg:{}");
auto row_count = num_rows_.value();
auto vec_data = fields_.at(field_id);

Expand Down
2 changes: 2 additions & 0 deletions internal/querynodev2/segments/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"context"
"fmt"
"sync"
"time"

"go.uber.org/atomic"
"go.uber.org/zap"
Expand Down Expand Up @@ -52,6 +53,7 @@ func searchSegments(ctx context.Context, mgr *Manager, segments []Segment, segTy
resultCh <- searchResult
// update metrics
elapsed := tr.ElapseSpan().Milliseconds()
log.Info("test-- search segment finish", zap.Int64("segment", s.ID()), zap.Duration("dur", time.Duration(elapsed)))
metrics.QueryNodeSQSegmentLatency.WithLabelValues(fmt.Sprint(paramtable.GetNodeID()),
metrics.SearchLabel, searchLabel).Observe(float64(elapsed))
metrics.QueryNodeSegmentSearchLatencyPerVector.WithLabelValues(fmt.Sprint(paramtable.GetNodeID()),
Expand Down

0 comments on commit 47c4a78

Please sign in to comment.