couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiril Stankov <ki...@open-net.biz>
Subject Re: Export from a table which have more tables in it
Date Tue, 03 Feb 2015 18:22:27 GMT
I also think that a good way to organize things is to put docs of 
different types in separate databases - this way you can also deal with 
views and other design docs in a more simplified way.
HTH.
------------------------------------------------------------------------
*With best regards,*
Kiril

On 2/3/2015 8:18 PM, Stanley Iriele wrote:
> Its pretty standard that every document has a type Field on it that let's
> you know what kind of type that document is.
>
> Then the map function just needs a "if type == " user" for processing
> specifically users
> On Feb 1, 2015 3:52 AM, "Ayhan Kesenci" <a.kesenci89@googlemail.com> wrote:
>
>> Hello Friends I already know, how to export a usual view from couchdb.
>> The problem is how I can create a map function for example for my case:
>>
>> I have the table User, User is a part of my whole database. And in "User"
>> there are more tables, for example "color of signs", but user is a part
>> from a database, so how should my map function looks like ? to get this ???
>>
>>
>> thank you
>>
>>
>> Ayhan
>>


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