mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Merge branch 'fix-bug-without-grpc' into 'branch-0.3.1'
fix quries/minute bug See merge request megasearch/milvus!279 Former-commit-id: 6285b0b1a0d381771d4b44187f82e3344581ea81
This commit is contained in:
commit
fc0cf0a1f2
@ -217,6 +217,7 @@ Status DBImpl::Query(const std::string& table_id, const std::vector<std::string>
|
||||
Status DBImpl::QueryAsync(const std::string& table_id, const meta::TableFilesSchema& files,
|
||||
uint64_t k, uint64_t nq, const float* vectors,
|
||||
const meta::DatesT& dates, QueryResults& results) {
|
||||
auto start_time = METRICS_NOW_TIME;
|
||||
server::TimeRecorder rc("");
|
||||
|
||||
//step 1: get files to search
|
||||
@ -259,6 +260,11 @@ Status DBImpl::QueryAsync(const std::string& table_id, const meta::TableFilesSch
|
||||
results = context->GetResult();
|
||||
rc.ElapseFromBegin("Engine query totally cost");
|
||||
|
||||
auto end_time = METRICS_NOW_TIME;
|
||||
auto total_time = METRICS_MICROSECONDS(start_time,end_time);
|
||||
|
||||
CollectQueryMetrics(total_time, nq);
|
||||
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user