From c732b01d45595ad831325cb8a7e032c38c1de4c3 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Fri, 29 Oct 2021 19:00:05 +0000 Subject: Remove the lids in one task instead of 1k tasks for full buckets on delete bucket. --- searchcore/src/vespa/searchcore/proton/index/memoryindexwrapper.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'searchcore') diff --git a/searchcore/src/vespa/searchcore/proton/index/memoryindexwrapper.h b/searchcore/src/vespa/searchcore/proton/index/memoryindexwrapper.h index ddbc0ffa882..e4eaad538cb 100644 --- a/searchcore/src/vespa/searchcore/proton/index/memoryindexwrapper.h +++ b/searchcore/src/vespa/searchcore/proton/index/memoryindexwrapper.h @@ -80,9 +80,7 @@ public: _index.insertDocument(lid, doc); } void removeDocuments(LidVector lids) override { - for (uint32_t lid : lids) { - _index.removeDocument(lid); - } + _index.removeDocuments(std::move(lids)); } uint64_t getStaticMemoryFootprint() const override { return _index.getStaticMemoryFootprint(); -- cgit v1.2.3