Re: Versioning in Zope and Plone revisited
Andreas Jung <
lists@...>
2010-07-01 15:15:03 GMT
Laurence Rowe wrote:
> Andreas' blog doesn't have comments, so I thought I'd follow up here
> to his post:
>
> http://www.zopyx.de/blog/versioning-in-zope-and-plone-revisited-part-i
>
> Overall I think it's an interesting approach (and a problem we really
> should solve) but I think it's a little too fixed on serializing
> objects to json, I have a couple of problems with it though:
>
> * For a ZODB backed storage this seems an unnecessary overhead.
Partly agreed - except that I don't want to deal with specific datatypes
like DateTime on a layer other than the application layer
(mean inside the application (Plone) and on the adapter level).
>
> * For a relational database backed storage, you may want to use a
> scheme that inserts a new row for each version, leading to a schema
> something like:
>
> #content_uid (PK), current_version (FK)
> (1, 3)
> (2, 5)
>
> #content_uid (FK), version (PK), data...
> (1, 1, "object 1", "title")
> (1, 2, "object 1", "changed title)
> (1, 3, "object 1", "another title)
> (2, 4, "object 2", "title")
> (2, 5, "object 2", "changed title")
>
That's roughly the same approach I took for the MongoDB
storage.
>
>
> I think supporting these other options means focussing first on what
> the history and edit views need:
>
Agreed that the UI views may need some special API for doing
efficient introspection on the version storage. I think that this should
not be a big deal - as long as the underlying storage
provides efficient search capabilities (ootb available with a
RDBMS or MongoDB - a ZODB-based version storage like needs
something on top of zope.index and zope.catalog).
Andreas
--
ZOPYX Limited | zopyx group
Charlottenstr. 37/1 | The full-service network for Zope & Plone
D-72070 Tübingen | Produce & Publish
www.zopyx.com | www.produce-and-publish.com
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers