couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Chris Anderson <>
Subject Re: File system data representation
Date Mon, 16 Aug 2010 01:49:06 GMT

On Aug 15, 2010, at 2:32 PM, Gregory Tappero wrote:

> Hello couchers,
> I was looking in a way to build S3 like  with couchdb.
> - buckets and files
> - sharing between users
> - update/move folders in buckets
> Using a separate doc for Each File with the pathj of the file in json
> seemed  like a good plan. We Can easily lits files and folders
> children of a given path when emiting on each /foo/ part of the path
> parameter.
> Sharing is also solved by creating sharing doc for a given path and
> user using pattern matching we can find out if a file is accessible to
> a user. /foo/bar matches /foo/ so Bob is allowed to see bar.
> For thé move folders action however i other  solution t han
> performing an update of path for all docs touched by the move
> operation.  / foo/bar and foo/bar/a plus sharings will need to be
> changed if foo become 'bizz', quite inneficient.
> Do you see some other solutions ?

This looks like the way to do it. Not much getting around the need to bulk update docs in
a path when renaming. 

Although renames are rare, and they won't involve rewriting the binary data, so it's not as
bad as it seems.


> -- 
> Greg Tappero
> CTO co founder Edoboard
> +33 0645764425

View raw message