DZone Database Zone
Transitioning From Equivalent Indexes to Index Replicas
In the previous post, we saw the benefits of using index replicas over equivalent indexes. Let’s say you are on Couchbase Server 4.x and have the following three equivalent indexes spread across three nodes; and with Couchbase 5.0 Beta available, you want to migrate these equivalent indexes to index replicas.
//old 4.x equivalent indexes create index eq_index1 on bucket(field1); create index eq_index2 on bucket(field1); create index eq_index3 on bucket(field1);Note: If you want to use the same nodes to create the replicas, do make sure that they have the required memory and compute resources for the both the index replicas and equivalent indexes to coexist.
No comments:
Post a Comment