From couchdb-dev-return-1365-apmail-incubator-couchdb-dev-archive=incubator.apache.org@incubator.apache.org Wed Dec 03 22:33:54 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 95323 invoked from network); 3 Dec 2008 22:33:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2008 22:33:54 -0000 Received: (qmail 42032 invoked by uid 500); 3 Dec 2008 22:34:05 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 41979 invoked by uid 500); 3 Dec 2008 22:34:04 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 41968 invoked by uid 99); 3 Dec 2008 22:34:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2008 14:34:04 -0800 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 jchris@gmail.com designates 74.125.44.155 as permitted sender) Received: from [74.125.44.155] (HELO yx-out-1718.google.com) (74.125.44.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2008 22:32:33 +0000 Received: by yx-out-1718.google.com with SMTP id 36so1721164yxh.0 for ; Wed, 03 Dec 2008 14:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=yYfqJfysnyfvgQA+VvekGd2i2XmsfQ1uxH6OUPWc1fU=; b=kh7wcVvdrXN2mirqUdf/Qe3z2NBnmmPeVvTd0V0QN+nMdmlZT1RBVuONXUbnJ/OOkl JJ4OVvf0aoqTvQPxCFxQBOSQJB/ijvcID7V1DmfhGxt6Xh4CtajUptZzyAy0HWsZUBWR h5gBm6ppO7Xc2h+W+E1SP2i6q7agAdp7HnpXk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=ZL5INorldI8T0Ze1INXQxr7ByWdVWdSvHQND76/rpHjkWUErlN/s5GkcVdqheDnOru ECzZz23AoFcgmX3LsZP9Oj5GQLRdOLfyxtpsqBz19YaFGAqN93oamoN9nPBIyiQUTzKI QXNYCuc8V/Y3JwT/1yPOez26ZgMg3V2xSEnoQ= Received: by 10.65.133.12 with SMTP id k12mr13430610qbn.65.1228343590529; Wed, 03 Dec 2008 14:33:10 -0800 (PST) Received: by 10.65.235.11 with HTTP; Wed, 3 Dec 2008 14:33:10 -0800 (PST) Message-ID: Date: Wed, 3 Dec 2008 14:33:10 -0800 From: "Chris Anderson" Sender: jchris@gmail.com To: couchdb-dev@incubator.apache.org Subject: Re: Auto-adding additional fields on PUT/POST? (datetime stamps) In-Reply-To: <493630F8.6050404@silencegreys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <53b9568a0812010829n49ce2eebl89419e5db0b536a4@mail.gmail.com> <493487C8.5060206@silencegreys.com> <53b9568a0812011907u25e99f06s7ee1c036356942df@mail.gmail.com> <4934EB71.3050500@silencegreys.com> <493630F8.6050404@silencegreys.com> X-Google-Sender-Auth: b15c39d2320a47a7 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Dec 2, 2008 at 11:10 PM, Jedediah Smith wrote: > > How about "live > views"? e.g. > > /db/_view/email/by_date?follow=true&after_seq=300 > > But then you need a way to represent removed rows.. seems simple enough: > > {"id":"abc", "key":"123", "deleted":true} > > This is essentially how replication via views will work. Replication views have slightly different semantics (they aren't stored on the server, for one thing -- it's up to the client to maintain the replication state.) As a result their function signature is different (they don't emit as they aren't sorted by key, just seq #). The client supplies a replication function, which the server runs across docs in seq order, replicating docs that match the function. This is looking very powerful. Chris -- Chris Anderson http://jchris.mfdz.com