A type of document that I want to store in couhbase can be queried on various combination of fields.
Should I have multiple views corresponding to each type of query or a single view emitting all the relevant fields across all the queries ?
Views emitting the following keys:
[blah_id, col1]
[blah_id, col2, timestamp]
[blah_id, timestamp]
[blah_id]
V/s
A single view generating the key
[blah_id, col1, col2, timestamp]
( and then using min and max values for columns you don't care about in a particular query )