diff options
author | Maria van Keulen <maria.vankeulen@mongodb.com> | 2019-09-10 21:59:36 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-10 21:59:36 +0000 |
commit | bfac8d909877600c395dccc575effbfbae76a82a (patch) | |
tree | 92a6502d4ee5e0b2168e4bbde5e0313a47df7381 /src/mongo/db/index/index_build_interceptor.h | |
parent | 3f6ba750fc8374968c3c06e31c67ac2839e9a736 (diff) | |
download | mongo-bfac8d909877600c395dccc575effbfbae76a82a.tar.gz |
SERVER-39708 Optimize Btree multikey updates
Diffstat (limited to 'src/mongo/db/index/index_build_interceptor.h')
-rw-r--r-- | src/mongo/db/index/index_build_interceptor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/index/index_build_interceptor.h b/src/mongo/db/index/index_build_interceptor.h index 4bdaaebf6f0..97dca244576 100644 --- a/src/mongo/db/index/index_build_interceptor.h +++ b/src/mongo/db/index/index_build_interceptor.h @@ -48,6 +48,8 @@ class IndexBuildInterceptor { public: enum class Op { kInsert, kDelete }; + static bool typeCanFastpathMultikeyUpdates(IndexType type); + /** * Creates a temporary table for writes during an index build. Additionally creates a temporary * table to store any duplicate key constraint violations found during the build, if the index @@ -91,6 +93,7 @@ public: */ Status checkDuplicateKeyConstraints(OperationContext* opCtx) const; + /** * Performs a resumable scan on the side writes table, and either inserts or removes each key * from the underlying IndexAccessMethod. This will only insert as many records as are visible |