Nuxeo mailing list archives
[CPS-devel] Altering existing documents
sebmas
sebastien.masson at ac-strasbourg.fr
Fri Mar 30 15:36:09 CEST 2007
Hi,
After a few years of intensive CPS using, our ZODB has grown and is
about 10GB big. So packing is sometimes difficult ("Data.fs" and
"Data.fs.old" fill the filesystem together) and I think it's not sane to
have such a big database.
Why is it so big ? Full of attached files, images, ...
I'd like to put all these space consuming elements on the filesystem,
using "CPS Disk File Field", but how to deal with existing documents ?
Is there a script performing these tasks ?
More generally, I'd like to know what's the best way to alter existing
documents when schemas and layouts change, in order to update them.
I was thinking about performing a search on the catalog in order to get
the relevant documents (based on their portal_type), find their "real"
object in the repository and then alter their structure and parameters
directly.
With text parameters (attachedfile size limit, css, ...), it doesn't
look too hard but how to process binary elements ? I've also checked
"getEditableContent" but didn't found the solution.
Any ideas ?
Regards
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.