[storm] Compressed Pickle and RawStrings

Barry Warsaw barry at canonical.com
Tue Apr 10 20:32:31 UTC 2012


On Apr 10, 2012, at 12:00 PM, Ryan Haynes wrote:

>I recently started using storm.  Thanks a lot for the work on this.  A
>quick question... I have relatively sparse numpy objects that I'd like
>to persist into RawStr.  Would it make sense to add a compression
>facility into the Columns that accept blobs?  I currently just do the
>following...

Do you know about Pickle() types?

class MailingList(Model):
    implements(IMailingList)

    id = Int(primary=True)
    accept_these_nonmembers = Pickle() # XXX


CREATE TABLE mailinglist (
    id INTEGER NOT NULL,
    accept_these_nonmembers BLOB,
    
    
mlist.accept_these_nonmembers = []

Cheers,
-Barry



More information about the storm mailing list