Company
Date Published
Author
Binh Le
Word count
653
Language
English
Hacker News points
None

Summary

Couchbase Server 7.0 introduces significant enhancements to index building and updating through the implementation of Scopes and Collections, which separate Bucket data into logical divisions, allowing for more organized data management similar to traditional RDBMS schemas and tables. This separation not only offers finer role-based access control but also retains the flexibility of a schema-less database by allowing users to create the schema that suits their application needs. The new model optimizes the Index Service by enabling DCP streaming at the Collection level, which reduces the workload on the projector during index builds and updates by focusing on specific Collections rather than entire Buckets. These improvements lead to more efficient processing as the projector no longer needs to evaluate the index WHERE clause for every mutation, resulting in significant CPU and disk I/O savings. Users can take advantage of these enhancements without altering their Index Service configuration, though they must specify Collection names when creating indexes, thereby benefiting from handling smaller datasets throughout the indexing process.