简体   繁体   中英

Insert large binary file or array (over 64MB) into Cassandra using datastax c++ driver

I'm looking for a way to Insert large binary file or array (over 64MB) into Cassandra using datastax c++ driver.

I know Cassandra has a 64MB limit for blobs, but as this thread implies

Datastax have a solution for that, but I can't find any examples in their API which prove that ability.

I'm also aware of the astyanax project by netflix, but it's written in java.

I'm talking about really large files, around 10GB each. I've succeeded in doing that using mongodb+gridfs, but wondered if Cassandra would perform better in terms of write performance.

Thanks

Cassandra is not built for large object storage.

You can either chunk the file into small blobs, perhaps 128k each, or try using CFS.

http://www.datastax.com/dev/blog/cassandra-file-system-design

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM