uscase editors.insertAssets : heap memory problems

Rudolf Korhummel <[email protected]> Sat, 26 Feb 2011 09:53:02 +0100
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
Hi all,

We have a publication with about 1000 assets. If we try to insert new  
assets with the usecase editors.insertAsset from the oneform editor  
the heap raises up 1 GB which runs into out of heap memory when we  
call it a second time and lenya stops working.

I think the problem is that the metadata of all assets have to be read  
to build up the listing.

Here a two suggestions to solve this problem:

1) Use a usecase  like editors.insertLink for images and assets. Only  
the metadata of the child documents have to be read.

2) Provide the information for the listing in the sitetree, so no  
metadata file content is needed.

WDYT

Rudolf