couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: global rewriter
Date Fri, 08 Jul 2011 15:34:48 GMT
On Fri, Jul 8, 2011 at 5:30 PM, Jonathan Geddes
<geddes.jonathan@gmail.com> wrote:
> CouchDB users,
>
> I'm working on a couchapp, and up untill now, a single rewriter on a single
> database, coupled with a vhost has been all I need.
>
> However, as the complexity of the app grows, I'm starting to need additional
> databases. Now I need a rewriter that spans multiple databases...
>
> Is there a good way to do this within couchdb? I suppose I could set up
> multiple vhosts, but that's not optimal. Can a rewriter in one database
> point to end points in another database somehow?
>

Yes, it's possible.

you have to set secure_rewrites to false in the settings and then you
can use relative paths to go in other db:


{
"from": "/some/path",
"to":"../../../somedb"
}


- benoƮt

Mime
View raw message