提交 a954f7a4 编写于 作者: Y yu yunfeng 提交者: jinhai

acc test


Former-commit-id: 73a1cf40d4227a8e30fa00c43d67f4483592eccb
上级 4cfee249
...@@ -612,7 +612,8 @@ Status DBMetaImpl::GetTableFiles(const std::string& table_id, ...@@ -612,7 +612,8 @@ Status DBMetaImpl::GetTableFiles(const std::string& table_id,
TableFilesSchema& table_files) { TableFilesSchema& table_files) {
try { try {
table_files.clear(); 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::file_type_,
&TableFileSchema::size_, &TableFileSchema::size_,
&TableFileSchema::date_, &TableFileSchema::date_,
...@@ -631,11 +632,12 @@ Status DBMetaImpl::GetTableFiles(const std::string& table_id, ...@@ -631,11 +632,12 @@ Status DBMetaImpl::GetTableFiles(const std::string& table_id,
for (auto &file : files) { for (auto &file : files) {
TableFileSchema file_schema; TableFileSchema file_schema;
file_schema.table_id_ = table_id; file_schema.table_id_ = table_id;
file_schema.file_id_ = std::get<0>(file); file_schema.id_ = std::get<0>(file);
file_schema.file_type_ = std::get<1>(file); file_schema.file_id_ = std::get<1>(file);
file_schema.size_ = std::get<2>(file); file_schema.file_type_ = std::get<2>(file);
file_schema.date_ = std::get<3>(file); file_schema.size_ = std::get<3>(file);
file_schema.engine_type_ = std::get<4>(file); file_schema.date_ = std::get<4>(file);
file_schema.engine_type_ = std::get<5>(file);
file_schema.dimension_ = table_schema.dimension_; file_schema.dimension_ = table_schema.dimension_;
GetTableFilePath(file_schema); GetTableFilePath(file_schema);
......
...@@ -138,6 +138,7 @@ Status FaissExecutionEngine::Search(long n, ...@@ -138,6 +138,7 @@ Status FaissExecutionEngine::Search(long n,
auto start_time = METRICS_NOW_TIME; auto start_time = METRICS_NOW_TIME;
std::shared_ptr<faiss::IndexIVF> ivf_index = std::dynamic_pointer_cast<faiss::IndexIVF>(pIndex_); 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) { if(ivf_index) {
ENGINE_LOG_DEBUG << "Index type: IVFFLAT nProbe: " << nprobe_; ENGINE_LOG_DEBUG << "Index type: IVFFLAT nProbe: " << nprobe_;
ivf_index->nprobe = nprobe_; ivf_index->nprobe = nprobe_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册