On May 26, 2010, at 8:48 PM, Aun... สุวพรหม wrote: > > > Hi, > > I design document in couchdb to have relation something like > > directory > | > A---------D > | > B---------C > | > | > E ------F > > if i would like to http (DELETE B) will delete all down documents > what is the possible solution to use. > > 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.....? >
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 > > Thanks, > A. > > > > _________________________________________________________________ > Hotmail: บริการอีเมลฟรี ที่เชื่อถือได้ และสมบูรณ์พร้อม > https://signup.live.com/signup.aspx?id=60969
