0
  • I have a reduced view which i want to query using multiple keys.
  • Since it is a reduced view so it is processing some data.
  • When i query it with multiple keys but it is giving all reduced data separately for each key.
  • Is it possible to get aggregated data for all keys i pass.
  • Can we use group level with multi key get as i am getting an error when i do.

I have tried with java and aggregating all the keys data in code is it possible to achieve it with couchbase db only rather then in code ?

Vikrant Mahajan
  • 545
  • 3
  • 8

1 Answers1

0

If the keys of the view are related in a hierarchical way, you can use group level as you mention. Otherwise, you cannot query with multiple keys other than to do two queries against different views and then do the intersection at the application side.

I can't speak to why you're getting an error, would need more info.

Also note Couchbase has a developer preview of something that would handle the case you mention. Look at Couchbase's N1QL.

Matt Ingenthron
  • 1,894
  • 14
  • 14