incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shuge Lee <shuge....@gmail.com>
Subject Re: how to store file in the cassandra?
Date Mon, 26 Apr 2010 00:57:57 GMT
In Python:

keyspace.columnfamily[key][column] = value

files.video[uuid.uuid4()]['name'] = 'foo.flv'
files.video[uuid.uuid4()]['path'] = '/var/files/foo.flv'

create a mapping
files.video =  {
    uuid.uuid4() : {
        'name' : 'foo.flv',
        'path' : '/var/files/foo.flv',
    }
}

if most of sizes >= 0.5MB, use sys-fs/reiser4progs, else use ext4.


2010/4/26 Bingbing Liu <rucbing@gmail.com>

>  any suggestion?
>
> 2010-04-26
> ------------------------------
> Bingbing Liu
>



-- 
Shuge Lee | Lee Li | 李蠡

Mime
View raw message