Saving binary data on cassandra as MYSQL BLOB binary

is it possible to store binary data in apache cassandra?

I am thinking about saving the image in apache cassandra

+6
database cassandra nosql
source share
2 answers

"The Cassandra public API is based on Thrift, which does not have streaming capabilities โ€” any value written or extracted must be memory-friendly. This is inherent to the Thrift design and therefore is unlikely to change. Therefore, adding support for large objects in Cassandra will require a special API that manually breaks large objects to pieces. A potential approach is described at http://issues.apache.org/jira/browse/CASSANDRA-265 . In the meantime, as a workaround, you can manually split the files into pieces of any size that suits you - at least odi n the person uses 64 MB - and the file corresponds to a line, and pieces - as values โ€‹โ€‹of a column. "

From: CassandraLimitations

+4
source share

it depends on the size, cassandra is not suitable for blobs, it can store up to 2 GB of each column, divided by 1 MB. you can store files in a file system (or cdn for the Internet) and save links, or maybe with a preview in cassandra, or you can look at mongodb + gridfs.

+3
source share

All Articles