feat(db): cache for mem serialization

Former-commit-id: 9d3211b9c4bfa6132cd52822e19c1ae5d287d9a2
This commit is contained in:
Xu Peng 2019-04-24 15:47:34 +08:00
parent 7150d3c5aa
commit 22281e8ea5

View File

@ -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;
}