mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-30 15:35:33 +08:00
acc test
Former-commit-id: a7803568fa785d403e7c92b83c66f9f47f7c8f13
This commit is contained in:
parent
81e13fd1cb
commit
7512cc1e06
@ -612,7 +612,8 @@ Status DBMetaImpl::GetTableFiles(const std::string& table_id,
|
||||
TableFilesSchema& table_files) {
|
||||
try {
|
||||
table_files.clear();
|
||||
auto files = ConnectorPtr->select(columns(&TableFileSchema::file_id_,
|
||||
auto files = ConnectorPtr->select(columns(&TableFileSchema::id_,
|
||||
&TableFileSchema::file_id_,
|
||||
&TableFileSchema::file_type_,
|
||||
&TableFileSchema::size_,
|
||||
&TableFileSchema::date_,
|
||||
@ -631,11 +632,12 @@ Status DBMetaImpl::GetTableFiles(const std::string& table_id,
|
||||
for (auto &file : files) {
|
||||
TableFileSchema file_schema;
|
||||
file_schema.table_id_ = table_id;
|
||||
file_schema.file_id_ = std::get<0>(file);
|
||||
file_schema.file_type_ = std::get<1>(file);
|
||||
file_schema.size_ = std::get<2>(file);
|
||||
file_schema.date_ = std::get<3>(file);
|
||||
file_schema.engine_type_ = std::get<4>(file);
|
||||
file_schema.id_ = std::get<0>(file);
|
||||
file_schema.file_id_ = std::get<1>(file);
|
||||
file_schema.file_type_ = std::get<2>(file);
|
||||
file_schema.size_ = std::get<3>(file);
|
||||
file_schema.date_ = std::get<4>(file);
|
||||
file_schema.engine_type_ = std::get<5>(file);
|
||||
file_schema.dimension_ = table_schema.dimension_;
|
||||
GetTableFilePath(file_schema);
|
||||
|
||||
|
||||
@ -138,6 +138,7 @@ Status FaissExecutionEngine::Search(long n,
|
||||
auto start_time = METRICS_NOW_TIME;
|
||||
|
||||
std::shared_ptr<faiss::IndexIVF> ivf_index = std::dynamic_pointer_cast<faiss::IndexIVF>(pIndex_);
|
||||
//ENGINE_LOG_DEBUG << "Index nlist: " << ivf_index->nlist << ", ntotal: "<< ivf_index->ntotal;
|
||||
if(ivf_index) {
|
||||
ENGINE_LOG_DEBUG << "Index type: IVFFLAT nProbe: " << nprobe_;
|
||||
ivf_index->nprobe = nprobe_;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user