mirror of https://github.com/milvus-io/milvus.git
Reduce memory usage of scalar index (#21970)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>pull/21993/head
parent
6d05f102c1
commit
5316743a00
|
@ -44,6 +44,6 @@ struct IndexStructure {
|
|||
return a_ == b.a_;
|
||||
}
|
||||
T a_;
|
||||
size_t idx_;
|
||||
int32_t idx_;
|
||||
};
|
||||
} // namespace milvus::index
|
||||
|
|
|
@ -81,7 +81,7 @@ class ScalarIndexSort : public ScalarIndex<T> {
|
|||
private:
|
||||
bool is_built_;
|
||||
Config config_;
|
||||
std::vector<size_t> idx_to_offsets_; // used to retrieve.
|
||||
std::vector<int32_t> idx_to_offsets_; // used to retrieve.
|
||||
std::vector<IndexStructure<T>> data_;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue