incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mobiledream...@gmail.com
Subject is it possible to do batch_insert using cassandra cassdict?
Date Wed, 18 Nov 2009 02:53:33 GMT
This is what we need for batch_insert in cassdict but such dictionary
hierarchy works only up to super column level. Any thoughts on how to do
batch_insert or multiple insert in cassdict
Thanks
c =dict(myRow= dict(Supern1= dict(super_column_name= dict(d=3,f=4))))
*
*
*

insert multiple cols from higher up the hierarchy>>>
c['rowB']['stdcol'] = { 'colA' : 'rowB colA value' , 'colB' : 'rowB
colB value'}


*

c['myRow']['Supern1'] = dict(super_column_name= dict(d=3,f=4))
*In [15]: c['myRow'] = dict(Supern1= dict(super_column_name= dict(d=3,f=4)))
*
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)

 /cassdict/cass.pyc in __setitem__(self, key, value, internal)
    384         if not internal:
    385             #implemented in subclasses

--> 386             raise NotImplementedError
    387         return super(Cassdict,self).__setitem__(key,value)
    388

NotImplementedError:
In [16]:

Mime
View raw message