Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences
C++ algoliadatastoreelasticsearchenterprise-searchfacetingfull-text-searchfuzzy-searchgeosearchin-memoryinstantsearchmerchandisingpineconesearchsearch-enginesemantic-searchsimilarity-searchsite-searchsynonymstypo-tolerancevector-search
Fix collection restore batch size.
Kishore Nallanefec5f97e906
diff --git a/include/collection_manager.h b/include/collection_manager.hindex 9de2ecf7..80509c65 100644--- a/include/collection_manager.h+++ b/include/collection_manager.h@@ -111,7 +111,7 @@ public:float max_memory_ratio);static Option<bool> load_collection(const nlohmann::json& collection_meta,- const size_t init_batch_size,+ const size_t batch_size,const StoreStatus& next_coll_id_status,const std::atomic<bool>& quit);diff --git a/src/collection_manager.cpp b/src/collection_manager.cppindex 196c19bf..7dae91d3 100644--- a/src/collection_manager.cpp+++ b/src/collection_manager.cpp@@ -992,7 +992,7 @@ Option<Collection*> CollectionManager::create_collection(nlohmann::json& req_jso}Option<bool> CollectionManager::load_collection(const nlohmann::json &collection_meta,- const size_t init_batch_size,+ const size_t batch_size,const StoreStatus& next_coll_id_status,const std::atomic<bool>& quit) {@@ -1109,8 +1109,6 @@ Option<bool> CollectionManager::load_collection(const nlohmann::json &collectionbool last_record = !(iter->Valid() && iter->key().starts_with(seq_id_prefix));// batch must match atleast the number of shards- const size_t batch_size = 1;-if((num_valid_docs % batch_size == 0) || last_record) {size_t num_records = index_records.size();size_t num_indexed = collection->batch_index_in_memory(index_records);