On 09/29/2015 07:39 PM, Michael McFadden wrote:
On 09/24/2015 08:47 AM, Jean Jordaan wrote:

If relstorage is growing for blob uploads, I would think something is
wrongly configured.
I'm really thinking the same thing myself, but I wouldn't know the first place to look to configure this.


Yep. I found that I made a change where my content type stopped implementing and inheriting from ATBlob and went back to implementing IFileContent.

"There's your problem"

Must have been a great idea at the time.

I spent the time to learn how schemaextender works now, and the content type is back to being based off of ATBlob.

I'm still doing the storage Tom Foolery, but working with blobs instead of filedata now. This makes much more sense.

With the added benefit that I don't take file data and write it out as a temp file. plone.app.blob.utils.openBlob() does that work for me now in a smarter fashion.

I have a slight worry that when I close the blob using the file object that openBlob gave me, then immediately call consumeFile on the ZODB.blob, garbage collection may not have time to destroy the weakref in ZODB.blob and I'll get a 'file opened' exception.

I'm not savvy enough with garbage collection and weakrefs in python to really be sure about this.

Thanks guys.

Mike McFadden
Radio Free Asia
Technical Operations Division
2025 M Street NW
Washington DC 20036 USA

This e-mail message is intended only for the use of the addressee and may 
contain information that is privileged and confidential.  Any unauthorized 
dissemination, distribution or copying is strictly prohibited.  If you receive 
this transmission in error, please contact netw...@rfa.org.

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to