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