我正在开发一个
PHP平台,将大量使用图像,文档和任何文件格式,这将在我的脑海中,所以我想知道Cassandra是否是我的需要的一个不错的选择.
如果没有,可以告诉我如何存储文件?我想继续使用cassandra,因为它是容错的,并在节点之间使用自动复制.
感谢帮助.
从
cassandra wiki,
Cassandra's public API is based on Thrift,which offers no streaming abilities any value written or fetched has to fit in memory. This is inherent to Thrift's design and is therefore unlikely to change. So adding large object support to Cassandra would need a special API that manually split the large objects up into pieces. A potential approach is described in http://issues.apache.org/jira/browse/CASSANDRA-265. As a workaround in the meantime,you can manually split files into chunks of whatever size you are comfortable with -- at least one person is using 64MB -- and making a file correspond to a row,with the chunks as column values.