将数据附加到cassandra中的超级列族
我正在尝试使用 phpcassa 将巨大的数据集添加到 cassandra 中。该数据集包含过去几年我们的站点事件。我有一个超级列族,我想向其中附加事件。我当前的方法是从 cassandra 获取现有数据,附加新事件,然后写回。该方法似乎无法扩展到超过几十万条记录。将数据附加到超级列族的最佳方法是什么?
I am trying to add a huge dataset into cassandra using phpcassa. The dataset comprises of our site events over the last few years. I have a super column family to which I want to append events. My current approach is to get the existing data from cassandra, append the new events and then write it back. The approach does not seem to scale beyond a few 100k records. What's the best way to append data to a super column family?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需将新事件附加为新的超级列,没有理由读取和重写旧事件。
请参阅http://www.datastax.com/docs/0.8/data_model/supercolumns 了解有关超级柱的更多信息。
Just append the new events as new supercolumns, there's no reason to read-and-rewrite the old ones.
See http://www.datastax.com/docs/0.8/data_model/supercolumns for more on supercolumns.