And on that note... Maps aren't like SQL queries. They're designed to run against the data to produce indexable data. Think about it like a SQL index that you are building. You obviously can't include the remote user's information in a SQL index because that is built when things change. The same is true for CouchDB. There is no reason why map building has to happen when a user makes a query, it's just convenient for CouchDB to do so.
If you want to index the user's remote address, create a document and toss it in there. Or update an existing one. This mechanism becomes a little weird if you're making a CouchApp. From: Jens Alfke Sent: 11/13/2013 20:17 To: user@couchdb.apache.org Subject: Re: CouchDB: Remote IP Address in Map Function On Nov 13, 2013, at 6:08 PM, Hank Knight <hknight...@gmail.com> wrote: > Is it possible to access the remote IP address in a CouchDB map function? No. You can’t and shouldn’t access anything but the document you were given. We just talked about this on another thread, yesterday or today. —Jens