Multiple vs single view

8 views
Skip to first unread message

Manoj Mathai

unread,
Dec 22, 2014, 11:55:46 PM12/22/14
to couc...@googlegroups.com

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 )

Reply all
Reply to author
Forward
0 new messages