mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 12:59:23 +08:00
feat(db): cache for mem serialization
Former-commit-id: 9d3211b9c4bfa6132cd52822e19c1ae5d287d9a2
This commit is contained in:
parent
7150d3c5aa
commit
22281e8ea5
@ -4,6 +4,7 @@
|
||||
#include <thread>
|
||||
|
||||
#include <wrapper/Index.h>
|
||||
#include <cache/CpuCacheMgr.h>
|
||||
|
||||
#include "MemManager.h"
|
||||
#include "Meta.h"
|
||||
@ -53,6 +54,10 @@ Status MemVectors::serialize(std::string& group_id) {
|
||||
meta::GroupFileSchema::TO_INDEX : meta::GroupFileSchema::RAW;
|
||||
|
||||
auto status = pMeta_->update_group_file(schema_);
|
||||
|
||||
zilliz::vecwise::cache::CpuCacheMgr::GetInstance(
|
||||
)->InsertItem(schema_.location, std::make_shared<Index>(pIndex_));
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user