On Thu, Sep 22, 2011 at 3:50 PM, Aaron Turner <synfina...@gmail.com> wrote:

> On Thu, Sep 22, 2011 at 11:28 AM, Ian Danforth <idanfo...@numenta.com>
> 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
> http://synfin.net/         Twitter: @synfinatic
> http://tcpreplay.synfin.net/ - 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"
>

For data accessed through a single path, I use the same trick: pickle, bz2
and insert.

-- 
Alexis Lê-Quôc | Datadog, Inc. | @alq

Reply via email to