[Sugar-devel] Datastore rewrite

Frederick Grose fgrose at gmail.com
Sat Jun 12 15:07:23 EDT 2010


On Sat, Jun 12, 2010 at 12:57 PM, Bernie Innocenti <bernie at codewiz.org>wrote:

> El Sat, 12-06-2010 a las 11:40 -0400, Benjamin M. Schwartz escribió:
> > It is one thing to say that we need a new datastore, and another to say
> > what the new datastore should look like.  I believe we have consensus on
> > the first part, and I'm fairly sure we don't have consensus on the
> second.
>
> I tend to agree with you.
>
> > For the record, I am pushing a proposal in which no deltas are computed.
> > Files are stored as whole files.  Instead, I want each datastore object
> > version to consist of an entire directory.  To save space, files that are
> > identical inside multiple objects would only be stored once on disk.
>  This
> > allows us to store and launch Activity Bundles directly from the journal.
> >  It also allows slight modifications to objects (including activities) to
> > be stored efficiently if the object consists of multiple files and not
> all
> > of them are changed.
>
> Sounds like a good approach, please ping me to review the spec when it's
> available.
>

Some references here:
http://wiki.sugarlabs.org/go/Design_Team/Proposals/Journal

Sascha Silbe's Datastore redesign draft with embedded comments from Eben,
Tomeu, & Sascha:
https://docs.google.com/a/sugarlabs.org/Doc?docid=0AUl2E5uTm959ZGd3N3FucXdfMWhzbjVjeGht&hl=en
(Sugar Labs account holders may edit this document.)



> As an optimization to reduce the number of inodes and vfs syscalls,
> perhaps it might be worthwhile to let the activity specify whether it
> needs to store one file or a directory with multiple files.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20100612/9b5ad73a/attachment.htm 


More information about the Sugar-devel mailing list