I am trying to use couchbase for an e-commerce application where I will have different types (tables in RDBMS world) like customer, address, invoice, invoiceDetails, Items, creditcard etc. So I have like 25 -30 different types of documents. In order to query these documents I created 4 views in a single design document.
Reading the documentation a bit more I learnt that all views are updated if any of the view changes in a single design document. So I am in the process of splitting the views in different design documents. Currently I have 4 design documents and each has a single view. I now need to create more views and I don’t want those views in one of the existing design documents, the simple reason is each type will have millions of records and I do not want to reindex/update all views.
So my question is how many design documents can I create, what are the disadvantages if I have a lot of design document (design document per view).