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 )

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to