将数据附加到cassandra中的超级列族

发布于 2024-11-14 07:34:41 字数 159 浏览 10 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼眸 2024-11-21 07:34:41

只需将新事件附加为新的超级列,没有理由读取和重写旧事件。

请参阅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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文