Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 12708 invoked from network); 27 May 2010 04:44:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 May 2010 04:44:30 -0000 Received: (qmail 17217 invoked by uid 500); 27 May 2010 04:44:29 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 17190 invoked by uid 500); 27 May 2010 04:44:29 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 17182 invoked by uid 99); 27 May 2010 04:44:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 04:44:28 +0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchris@gmail.com designates 209.85.212.180 as permitted sender) Received: from [209.85.212.180] (HELO mail-px0-f180.google.com) (209.85.212.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 May 2010 04:44:22 +0000 Received: by pxi17 with SMTP id 17so3393469pxi.11 for ; Wed, 26 May 2010 21:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=YZyf1KxrYngAQ6bkq7zerd/euUOfuVj4xNuG/NiMTgg=; b=SZRgT78G7GSzHHzn+IngRupy2J2msVt3AY/nUxnQjkiH1YRCsE5y0wS9DBclrLHUWc SzZ6Rb/wbCBJd1se8A/8rwwFVmZSt2MgSJHpFhMAB+Us8+ebAiX6D+HHZJiE3jd8XvBQ DnVfh7S9lVV4vRcBDD3XEX1/GFPi/c2nsKxuE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=m7RHl2df9OQen/hp9+zs3SGJ9/zGqaLfleOLdA1Lx2JyNvU49pQLBb1vAZ7pU78OEP tKPg42k8Pv7TwhhhS40WFk3bFAGYeWx2skMAeYHpmautuwugh2g17W56mz7+mXDbJy1h LphnioYkvc3RpyISY4hflWObLt+DY0FqLy8ps= Received: by 10.141.105.19 with SMTP id h19mr7408150rvm.281.1274935442214; Wed, 26 May 2010 21:44:02 -0700 (PDT) Received: from [192.168.1.101] (c-98-248-172-14.hsd1.ca.comcast.net [98.248.172.14]) by mx.google.com with ESMTPS id b1sm695630rvn.14.2010.05.26.21.44.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 26 May 2010 21:44:01 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Apple Message framework v1078) Subject: Re: Delete document Tree Structure From: J Chris Anderson In-Reply-To: Date: Wed, 26 May 2010 21:43:58 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <15C114D3-2851-421B-9887-4112DBBA4A28@gmail.com> References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1078) On May 26, 2010, at 8:48 PM, Aun... =E0=B8=AA=E0=B8=B8=E0=B8=A7=E0=B8=9E=E0= =B8=A3=E0=B8=AB=E0=B8=A1 wrote: >=20 >=20 > Hi, >=20 > I design document in couchdb to have relation something like >=20 > directory > | > A---------D > | > B---------C > | > | > E ------F >=20 > if i would like to http (DELETE B) will delete all down = documents what is the possible solution to use. >=20 > 1. can i create view and find relation and delete = all of them ? > 2. get relation by higher programming api (C#,PHP) = and then delete each one? > 3. Do you have any solution to suggest on this.....? >=20 It is common to store the full path to each item, on the item, so you'd = have B > C > E > F stored on F then you can view easily across the tree. however, reparenting a node, (say, moving B to become a child of D) = require asynchronous processing or a bulk docs request and is not = transactional. Chris >=20 > Thanks, > A.=20 >=20 >=20 > =20 > _________________________________________________________________ > Hotmail: =E0=B8=9A=E0=B8=A3=E0=B8=B4=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=AD= =E0=B8=B5=E0=B9=80=E0=B8=A1=E0=B8=A5=E0=B8=9F=E0=B8=A3=E0=B8=B5 = =E0=B8=97=E0=B8=B5=E0=B9=88=E0=B9=80=E0=B8=8A=E0=B8=B7=E0=B9=88=E0=B8=AD=E0= =B8=96=E0=B8=B7=E0=B8=AD=E0=B9=84=E0=B8=94=E0=B9=89 = =E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B8=AA=E0=B8=A1=E0=B8=9A=E0=B8=B9=E0=B8=A3=E0= =B8=93=E0=B9=8C=E0=B8=9E=E0=B8=A3=E0=B9=89=E0=B8=AD=E0=B8=A1 > https://signup.live.com/signup.aspx?id=3D60969