From 9cb81455a1b86557bdeaed37d3ae3c4ed8468029 Mon Sep 17 00:00:00 2001 From: Xu Peng Date: Tue, 30 Apr 2019 10:36:55 +0800 Subject: [PATCH] refactor(db): change print for search Former-commit-id: c1df662f54ba5132db8d4fbbbd9b1e9998a61e7a --- cpp/src/db/DBImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/src/db/DBImpl.cpp b/cpp/src/db/DBImpl.cpp index 0720e6a9..82fa2078 100644 --- a/cpp/src/db/DBImpl.cpp +++ b/cpp/src/db/DBImpl.cpp @@ -120,7 +120,8 @@ Status DBImpl::search(const std::string& group_id, size_t k, size_t nq, index = read_index(file.location.c_str()); zilliz::vecwise::cache::CpuCacheMgr::GetInstance()->InsertItem(file.location, index); } - LOG(DEBUG) << "Search Index Of Size: " << index->dim * index->ntotal * 4 /(1024*1024) << " M"; + LOG(DEBUG) << "Search file_type " << file.file_type << " Of Size: " + << index->dim * index->ntotal * 4 /(1024*1024) << " M"; index->search(nq, vectors, k, output_distence, output_ids); cluster(output_ids, output_distence); // cluster to each query memset(output_distence, 0, k * nq * sizeof(float)); -- GitLab