提交 5953f050 编写于 作者: G groot 提交者: JinHai-CN

default nlist 2048 (#2498)

Signed-off-by: Ngroot <yihua.mo@zilliz.com>
上级 63ae6199
......@@ -39,7 +39,7 @@ typedef std::vector<faiss::Index::distance_t> ResultDistances;
struct CollectionIndex {
int32_t engine_type_ = (int)EngineType::FAISS_IDMAP;
int32_t metric_type_ = (int)MetricType::L2;
milvus::json extra_params_ = {{"nlist", 16384}};
milvus::json extra_params_ = {{"nlist", 2048}};
};
struct VectorsData {
......
......@@ -25,7 +25,6 @@ namespace engine {
namespace meta {
constexpr int32_t DEFAULT_ENGINE_TYPE = (int)EngineType::FAISS_IDMAP;
constexpr int32_t DEFAULT_NLIST = 16384;
constexpr int32_t DEFAULT_METRIC_TYPE = (int)MetricType::L2;
constexpr int32_t DEFAULT_INDEX_FILE_SIZE = GB;
constexpr char CURRENT_VERSION[] = MILVUS_VERSION;
......
......@@ -112,7 +112,7 @@ ValidationUtil::ValidateCollectionName(const std::string& collection_name) {
}
std::string invalid_msg = "Invalid collection name: " + collection_name + ". ";
// Collection name size shouldn't exceed 16384.
// Collection name size shouldn't exceed 255.
if (collection_name.size() > COLLECTION_NAME_SIZE_LIMIT) {
std::string msg = invalid_msg + "The length of a collection name must be less than 255 characters.";
LOG_SERVER_ERROR_ << msg;
......@@ -426,7 +426,7 @@ ValidationUtil::ValidatePartitionName(const std::string& partition_name) {
}
std::string invalid_msg = "Invalid partition name: " + partition_name + ". ";
// Collection name size shouldn't exceed 16384.
// Collection name size shouldn't exceed 255.
if (partition_name.size() > COLLECTION_NAME_SIZE_LIMIT) {
std::string msg = invalid_msg + "The length of a partition name must be less than 255 characters.";
LOG_SERVER_ERROR_ << msg;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册