Pycassa | Python
        Posted  
        
            by MMRUser
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by MMRUser
        
        
        
        Published on 2010-03-12T04:39:38Z
        Indexed on 
            2010/03/12
            4:47 UTC
        
        
        Read the original article
        Hit count: 384
        
python
Is anyone having experience working with pycassa I have a doubt with it. How do I get all the keys that are stored in the database?
well in this small snippet we need to give the keys in order to get the associated columns (here the keys are 'foo' and 'bar'),that is fine but my requirement is to get all the keys (only keys) at once as Python list or similar data structure.
cf.multiget(['foo', 'bar'])
{'foo': {'column1': 'val2'}, 'bar': {'column1': 'val3', 'column2': 'val4'}}
Thanks.
© Stack Overflow or respective owner