cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Turner <>
Subject Re: Storing (python) objects
Date Thu, 22 Sep 2011 19:50:15 GMT
On Thu, Sep 22, 2011 at 11:28 AM, Ian Danforth <> wrote:
> All,
>  I find myself considering storing serialized python dicts in Cassandra. I'd
> like to store fairly complex, nested dicts, and it's just easier to do this
> rather than work out a lot of super columns / columns etc.
>  Do others find themselves storing serialized data structures in Cassandra
> or is this generally a sign of doing something wrong?
>  Thanks in advance!
> Ian

I just convert my ruby objects to json strings and store it that way.
Works just fine and there's no advantage to use SuperColumns since
Cassandra has to read all the supercolumns anyways, so storing as json
requires less overhead.

Aaron Turner         Twitter: @synfinatic - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    -- Benjamin Franklin
"carpe diem quam minimum credula postero"

View raw message