Multiple key ranges as parameters to a CouchDB view

后端 未结 3 479
渐次进展
渐次进展 2021-01-11 13:42

The underlying problem - let\'s say my documents have \"categories\" and timestamps. If I want all documents in the \"foo\" category that have a t

3条回答
  •  走了就别回头了
    2021-01-11 14:31

    Your probably better off just doing two queries. CouchDB can handle multiple simultaneous queries pretty well so spin off several processes/threads and query for foo and bar docs seperately.

    CouchDB does not currently support multiple range queries. ORing and ANDing keys is pretty much not doable in one query.

提交回复
热议问题