From dev-return-8636-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Mon Feb 15 23:09:01 2010 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 92310 invoked from network); 15 Feb 2010 23:09:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2010 23:09:01 -0000 Received: (qmail 54595 invoked by uid 500); 15 Feb 2010 23:09:01 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 54508 invoked by uid 500); 15 Feb 2010 23:09:00 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 54498 invoked by uid 99); 15 Feb 2010 23:09:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2010 23:09:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.210.190 as permitted sender) Received: from [209.85.210.190] (HELO mail-yx0-f190.google.com) (209.85.210.190) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2010 23:08:54 +0000 Received: by yxe28 with SMTP id 28so900111yxe.29 for ; Mon, 15 Feb 2010 15:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=llGkVRh2vCoBZ1kfB2WLfDgKJIRn6K/A1SsIPCGBnlY=; b=SYF/uhK/8+h2PeXQRpFy79QkmmcaXM5Qf5hgBmQzRalnHzbnYUqcF//iXTPvyea5RM Buv0Lmw8NYXNd1MGKprBUgKLpKooU+OyWZ/NTTkbTxtHGPV5mIupc8f7Hmyy7PlhtfJY iKXmAjrn+/Mptez4tPlxxKs2Uq0oOrUYqI+Gw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=lwQFgu+VyigWb5fTwJL4elbdG8+fDeQ6+dE9opxgHpPb8UUDs1S9nwoum9b9mKDgXU 4xYcm6I2A2+WEsMWyORraTa1aCfM+p/QGWtMnZGjLZ610oUtXpjwEywIGI2r1xqJ7z7D hZxcIpVx1utysXONmIoAVy0iAibt/QICm6/UM= MIME-Version: 1.0 Received: by 10.100.245.29 with SMTP id s29mr3228301anh.146.1266275313124; Mon, 15 Feb 2010 15:08:33 -0800 (PST) In-Reply-To: References: From: Paul Davis Date: Mon, 15 Feb 2010 18:08:13 -0500 Message-ID: Subject: Re: Accessing design doc from view server code? To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Zachary, The issue is view invalidation. Blind access to the design doc would mean that views are tied to the entire doc which would cause alot of unnecessary rebuilds. Having access to part of the doc isn't totally out of the question but at some point the question is why not just use !code macros or similar. HTH, Paul Davis On Mon, Feb 15, 2010 at 5:36 PM, Zachary Zolton wrote: > Devs, > > Wasn't there some discussion about making the design doc accessible > from the view server? (I thought there was an old ML thread for this, > but I can't find it.) > > I don't really mind having to use the CouchApp !code or !json macros, > but I'm curious to hear if anyone else thinks this would be a good > idea. > > > Cheers, > > Zach >