incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Capriolo <edlinuxg...@gmail.com>
Subject Re: Storing (python) objects
Date Fri, 23 Sep 2011 21:04:02 GMT
On Fri, Sep 23, 2011 at 1:41 PM, Ian Danforth <idanforth@numenta.com> wrote:

> Good feedback from all. Thanks!
>
> Ian
>
> On Fri, Sep 23, 2011 at 7:48 AM, Tristan Seligmann <
> mithrandi@mithrandi.net> wrote:
>
>> On Fri, Sep 23, 2011 at 1:09 AM, Alexis Lê-Quôc <alq@datadoghq.com>
>> wrote:
>> > For data accessed through a single path, I use the same trick: pickle,
>> bz2
>> > and insert.
>>
>> Note that unpickling a pickle in Python involves a) arbitrary code
>> execution, and b) relies on your code being the same (or close enough)
>> to what it was when the pickle was created, so it is generally a very
>> bad choice for persistent data serialization.
>> --
>> mithrandi, i Ainil en-Balandor, a faer Ambar
>>
>
>
I am working on something similar
https://github.com/edwardcapriolo/Cassandra-AnyType one of the features I
want to get at is being able to serialize any comparable object to json
using google gson. Doing this will allow storage of any Java object as json,
and the fields should sort by the same rules as compare to. (still a work in
progress)

Mime
View raw message