views:

32

answers:

1

i have things that requires processing and rarely changes except with certain events to take advantage of memcached. can i store a serial version of an object in a data field quickly?

+3  A: 

Just pickle (or marshal or even JSON) it and throw it in memcached.

kaloyan
thanks, though memcache is no good, what sql column type would i use?
Timmy
pickle.dumps() returns a string. The problem is that this string can be pretty long so you have to make sure your SQL implementation can handle that.
kaloyan