Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 87281 invoked from network); 13 Apr 2008 04:04:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Apr 2008 04:04:19 -0000 Received: (qmail 1021 invoked by uid 500); 13 Apr 2008 04:04:20 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 994 invoked by uid 500); 13 Apr 2008 04:04:20 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 985 invoked by uid 99); 13 Apr 2008 04:04:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Apr 2008 21:04:20 -0700 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 72.14.220.159 as permitted sender) Received: from [72.14.220.159] (HELO fg-out-1718.google.com) (72.14.220.159) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Apr 2008 04:03:36 +0000 Received: by fg-out-1718.google.com with SMTP id 22so1020145fge.26 for ; Sat, 12 Apr 2008 21:03:47 -0700 (PDT) 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=g7wzDGHyOyV/ImzwKN9uVl6jN/XkIpzP0TRg89vMyao=; b=XVNst477/YzDQQOymBDhmtpKMsGFExg0sZ2S7y1CfKYL7U6QLfr/MyxVVP1KKi7Mcn7wgOS01cl85hVdFFHWu/L8EaSX1gwD/6Jwfk0w+U0R8O/qvfaS3gpyuVlW8WGVsodZadNLGQy2iwJf9RDynKHCoAxP/p5RuRap9k95Vg0= 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=f4jaOE6OE6pF6xVKg9j/NnZZFJFfZvdIDGThhZRhln/rkZhwNk/pvYtFhJTBviWx+UWCEQboxmQBmr2qg5+hWGVrP4cXtUGrEvaLwig7L97dl6IWjRU99TSfJvCTOdFW0s/133g3ZpSYRSxMX39gwl9Je4uBLvIME1nKSYRpkdw= Received: by 10.86.66.11 with SMTP id o11mr9840918fga.67.1208059427323; Sat, 12 Apr 2008 21:03:47 -0700 (PDT) Received: by 10.86.57.13 with HTTP; Sat, 12 Apr 2008 21:03:47 -0700 (PDT) Message-ID: Date: Sat, 12 Apr 2008 21:03:47 -0700 From: "Chris Anderson" Sender: jchris@gmail.com To: couchdb-user@incubator.apache.org Subject: Re: Create a view with only unique records In-Reply-To: <41fe564f0804122043x6d79e619t20c228f906fe0820@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <41fe564f0804122043x6d79e619t20c228f906fe0820@mail.gmail.com> X-Google-Sender-Auth: 2d7ec0b131a9f49f X-Virus-Checked: Checked by ClamAV on apache.org Ralf, If you use an algorithm to generate a deterministic _id for records before PUT-ing them to CouchDB, you can ensure that each unique record only appears once in the database. This discussion might be relevant for you: http://mail-archives.apache.org/mod_mbox/incubator-couchdb-user/200803.mbox/%3Ce282921e0803161811s4a98a946tc061be37766c7618@mail.gmail.com%3E Chris On Sat, Apr 12, 2008 at 8:43 PM, Ralf Nieuwenhuijsen wrote: > Is it possible to create a view with only unique-records? > I assume it would be possible using the future reduce/combinator behavor? > > What time-frame is the reduce-behavior planned? > > Greetings, > Ralf > -- Chris Anderson http://jchris.mfdz.com