2 View View View Design Document 1 View View Indexers Are Allocated Per Design Doc Can Only Access Data in the Bucket Namespace All Updated at Same Time
Mapper Index update pipeline JSON Document 1 • View index update is performed every five seconds when there are at-least 5000 doc changes • Update pipeline is invoked for each design document
Mapper Index update pipeline KV1 KV2 emitted values JSON Document 2 • View index update is performed every five seconds when there are at-least 5000 doc changes • Update pipeline is invoked for each design document
real time § Disk reads are not required from document storage engine § Faster index creation § Lower indexing latencies § Ability for view engine to rollback during node failures without full index rebuild Database Change Protocol and Views
(ms) for an updated document to get indexed in a view index 4 nodes, 1 bucket, 20M docs of size 2KB, 250 mutations/sec 0 10000 20000 30000 40000 Couchbase 2.5.1 Couchbase 3.0 34916 597