Skip to content

Commit

Permalink
fix: change search latency metric from us unit to ms unit
Browse files Browse the repository at this point in the history
  • Loading branch information
luzhang committed Nov 19, 2024
1 parent 1b4f7e3 commit c308c6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/core/src/exec/operator/FilterBitsNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ PhyFilterBitsNode::GetOutput() {
double scalar_cost =
std::chrono::duration<double, std::micro>(scalar_end - scalar_start)
.count();
monitor::internal_core_search_latency_scalar.Observe(scalar_cost);
monitor::internal_core_search_latency_scalar.Observe(scalar_cost / 1000);

return std::make_shared<RowVector>(col_res);
}
Expand Down
2 changes: 1 addition & 1 deletion internal/core/src/exec/operator/GroupByNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ PhyGroupByNode::GetOutput() {
double vector_cost =
std::chrono::duration<double, std::micro>(vector_end - vector_start)
.count();
monitor::internal_core_search_latency_groupby.Observe(vector_cost);
monitor::internal_core_search_latency_groupby.Observe(vector_cost / 1000);
return input_;
}

Expand Down
2 changes: 1 addition & 1 deletion internal/core/src/exec/operator/VectorSearchNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ PhyVectorSearchNode::GetOutput() {
double vector_cost =
std::chrono::duration<double, std::micro>(vector_end - vector_start)
.count();
monitor::internal_core_search_latency_vector.Observe(vector_cost);
monitor::internal_core_search_latency_vector.Observe(vector_cost / 1000);
// for now, vector search store result in query_context
// this node interface just return bitset
return input_;
Expand Down

0 comments on commit c308c6c

Please sign in to comment.