summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-10-29 19:00:05 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-10-29 19:00:05 +0000
commitc732b01d45595ad831325cb8a7e032c38c1de4c3 (patch)
tree629867ff5eef670fa008ad0312bccaf1a2ba422b /searchcore
parent18a747185627747b0d137d8d4f06da3024587114 (diff)
Remove the lids in one task instead of 1k tasks for full buckets on delete bucket.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/index/memoryindexwrapper.h4
1 files changed, 1 insertions, 3 deletions
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();