提交 22281e8e 编写于 作者: X Xu Peng

feat(db): cache for mem serialization


Former-commit-id: 9d3211b9c4bfa6132cd52822e19c1ae5d287d9a2
上级 7150d3c5
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册