[Grok-dev] Dolmen and its releases

Martin Aspeli optilude+lists at gmail.com
Fri Oct 23 06:46:02 EDT 2009

Souheil CHELFOUH wrote:
> After discussing this matter with several persons, it appears that the
> fact the File has its own _p_jar is not really a problem.
> As the file is often a "big" chunk of data, it makes sense to has a
> separate object, in the zope point of view, so when you load our
> object containing a file, you don't load the file with it.
> Performance wise, i'd say it doesn't have a negative impact, it's more
> than balance by that situation.
> What do you guys think ?

I think it depends on your use case:

  - if you've got a big file, it should be a blob; in this case, the 
blob container (which also stores filename etc) probably shouldn't be a 
separate persistent object, since the blob is one already.

  - if you have a small file and you will render its contents often when 
the object is loaded, avoiding a separate object load may be beneficial


Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

More information about the Grok-dev mailing list