Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add couchbase index replicate without deleting it

I have in my environment one secondary index (without replication) and I want to know how do I create the replicates without dropping the index?

I don't want to delete the index and recreate it with the replicates because I am not using the primary index, hence the constraint.

Thanks

like image 873
Lho Ben Avatar asked Jan 27 '26 01:01

Lho Ben


1 Answers

Upcoming 6.50 release you can modify index replication count (Example 4) https://docs.couchbase.com/server/6.5/n1ql/n1ql-language-reference/alterindex.html

Another alternative to @Lho Ben solution (CE version) is (9. Duplicate Indexes) described here https://blog.couchbase.com/create-right-index-get-right-performance/

like image 60
vsr Avatar answered Jan 29 '26 18:01

vsr