Partitioning data with buckets

Partitioning data with buckets

You can partition your data into separate buckets with Couchbase Server. Couchbase will keep separate storage for different buckets, which enables you to perform operations such as statistics. Separating buckets is also a structure you may choose if you have a particular bucket that is reserved for data removal.

As you build more complex applications, you may want to partition your application across more than one data bucket with the following goals in mind:

  • Improve fault tolerance by increasing replication gained in using multiple buckets.

  • Provide a special reserve bucket which can be cleared without affecting all other application data, which is spread across other buckets.

  • Partition your application’s key space among several buckets to avoid naming collisions.