We are using 4.1 version of Couchbase server. We are thinking of creating views per entity type within our product. For example, a view for “users”, a view for “accounts” etc… The documentation explains how to do that through Java SDK http://developer.couchbase.com/documentation/server/4.1/sdks/java-2.2/managing-views.html
However, in the context of what we are doing, we would like to create these views one time, up front, during product installation and have the view definition published. To do that, we plan to use the CLI or even the N1QL tool to create the views. However, we haven’t found any documentation which explains how to create these views through the CLI or N1QL cbq. Is this possible? If it isn’t then are there any other recommendations or common practices users follow for view creation?