Couchbase no of index limitation

Is there any index limitation on couchbase bucket/scope/collection level?

How many index should have in production server? or any client/case study you have?

Let say i want to create index like where custId = “c1”.

So here i want to create index per customerId, where there could be N no of customers. So can couchbase handle N no of indexes in same collection.

I have gone through below posts, but not helpful

Index WHERE meant for unrelated document types.
If N is few you can create. If lot use as INDEX key leading most. If EE use partition BY HASH(cutsId) if it is immutable

You won’t have an index for new customers that are added. Also - I suspect there is no performance benefit. as the query will need to figure out which index to use - or use all of them. Why not use the customerId as the document id and use the kv api or “use keys”

I have multiple records per customer in the same collection, so key is random guid.

If you can clarify below things:

  1. is there hard coded limit for no of indexes? Yes / No ?
  2. if there are many indexes, then if any document gets upserted, then will it take time indexes to be updated even if i have use partial index? Lets say i insert one record with custId = c1, then it will update only one partial index (where custId = c1) or affect others as well.
  1. I don’t know. One could perform an experiment to create indexes in a loop until failure. If there is no limit on the number of indexes, but you encounter other issues, then then the number of indexes would not be relevant. To determine if your design is feasible for your purpose, conduct an experiment.

Edit: 6708 and counting.

  1. I don’t know why they would. Again, a quick experiment would reveal the behavior.

If i am right around 1000 collections and 10000 indexes on cluster