简体   繁体   English

如何使用cqlengine批量/批量插入cassandra?

[英]How to bulk/batch insert in cassandra using cqlengine?

I want to use bulk insert in my cassandra for the performance purposes. 我想在我的cassandra中使用批量插入来实现性能目的。 I have 10 grabber servers which are producing data and insert them in master server. 我有10个抓取服务器,它们生成数据并将它们插入主服务器。
What I exactly want to do is that, instead of direct insert to the database, every grabber server collect data and insert to the main server once. 我真正想做的是,每个抓取服务器收集数据并插入主服务器一次,而不是直接插入数据库。 I don't know if it's batch insert or bulk insert or both. 我不知道它是批量插入还是批量插入或两者兼而有之。 how to do this? 这个怎么做? I'm using python and cql engine and cassandra in windows 8 我在Windows 8中使用python和cql引擎以及cassandra
I've found this batch insert but I don't know it's what I should do or not: http://www.datastax.com/docs/1.0/references/cql/BATCH 我发现这个批量插入但我不知道它应该做什么或不做: http//www.datastax.com/docs/1.0/references/cql/BATCH

以下是cqlengine批量查询文档: https ://cqlengine.readthedocs.org/en/latest/topics/queryset.html#batch-queries

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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