mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 21:39:19 +08:00
MS-624 Search vectors failed if time ranges long enough
Former-commit-id: c215db9f3606e42b21f45ea0b3c9fa349aba01d4
This commit is contained in:
commit
fa3b7f6bdc
@ -751,7 +751,7 @@ SqliteMetaImpl::FilesToSearch(const std::string &table_id,
|
||||
auto match_date = in(&TableFileSchema::date_, batch_dates);
|
||||
auto filter = where(match_tableid and match_date and match_type);
|
||||
auto batch_selected = ConnectorPtr->select(select_columns, filter);
|
||||
for (auto &file : selected) {
|
||||
for (auto &file : batch_selected) {
|
||||
selected.push_back(file);
|
||||
}
|
||||
}
|
||||
@ -765,7 +765,7 @@ SqliteMetaImpl::FilesToSearch(const std::string &table_id,
|
||||
auto match_date = in(&TableFileSchema::date_, batch_dates);
|
||||
auto filter = where(match_tableid and match_fileid and match_date and match_type);
|
||||
auto batch_selected = ConnectorPtr->select(select_columns, filter);
|
||||
for (auto &file : selected) {
|
||||
for (auto &file : batch_selected) {
|
||||
selected.push_back(file);
|
||||
}
|
||||
}
|
||||
|
@ -79,12 +79,8 @@ IVFSQHybrid::CopyGpuToCpu(const Config& config) {
|
||||
|
||||
VectorIndexPtr
|
||||
IVFSQHybrid::CopyCpuToGpu(const int64_t& device_id, const Config& config) {
|
||||
if (auto res = FaissGpuResourceMgr::GetInstance().GetRes(device_id)) {
|
||||
auto p = CopyCpuToGpuWithQuantizer(device_id, config);
|
||||
return p.first;
|
||||
} else {
|
||||
KNOWHERE_THROW_MSG("CopyCpuToGpu Error, can't get gpu_resource");
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user