couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hahn <m...@hahnca.com>
Subject Re: how to make queries with logical operators?
Date Sun, 27 May 2012 06:43:39 GMT
No.  Do two requests and merge them.  If you do both requests at the same
time it will be as fast as any db could do internally.  Node (or any other
async platform) is a good match for couch.

I don't know if there is a front-end for couch that can do standard queries
and joins.  If not then there should be.

On Sat, May 26, 2012 at 8:43 PM, Patrick Maia
<patrickjourdanmaia@gmail.com>wrote:

> Hi all, imagine I have a database that stores documents like these:
>
> { "type":"a", "attr1":"value1.1", "attr2":"value2.1"}
> { "type":"a", "attr1":"value1.2", "attr2":"value2.2"}
> { "type":"b", "attr3":"value3"}
> { "type":"c", "attr4":"value4"}
>
> Is there some way to get all docs where type == "a" or  type == "b" doing
> just one http request to couchdb?
>
> Thanks,
>
> Patrick Maia
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message