couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Panop S." <aun.pa...@gmail.com>
Subject Which is the better way to query
Date Thu, 05 Aug 2010 04:36:10 GMT
Hi,

         My system have document like this

              id = 1
              nickname = A


              id = 2
              parent id = 1


             id = 3
             parent  id = 1


            id = 4
            parent  id = 1


           Now I use map function to emit  ( nickname, doc) so the request
come from the key of nickname and
I make another request to get all child which has (id = parent id ).


         Would like to get suggestion on this is the correct way ?  Is it
possible to make this by just one request with nickname request?


Bests,
Aun.

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