Cassandra Batch Insert in Python
- or -
Post a project like this$100
- Posted:
- Proposals: 2
- Remote
- #460249
- Expired
Description
Experience Level: Intermediate
General information for the business: Analytics
Description of requirements/functionality: I need to do a batch `INSERT` in `Cassandra` using `Python`.
I am using the latest `Datastax` python driver.
The `INSERTS` are batches of columns that will be in the same row. I will have many rows to insert, but chunks of the data will be in the same row.
I can do individual `INSERTS` in a `for loop` as described in this post:
http://stackoverflow.com/questions/15683989/parameterized-queries-with-the-python-cassandra-module
I am using parametrized query, values as shown in that example.
This did not help:
http://stackoverflow.com/questions/17885238/how-to-multi-insert-rows-in-cassandra
I am not clear how to assemble a parameterized:
BEGIN BATCH
query values1
query values2
...
APPLY BATCH;
cursor.execute(batch_query)
Is this even possible? Will this speed up my `INSERTS`? I have to do millions. Even thousands take too long.
I found some Java info:
http://www.datastax.com/dev/blog/client-side-improvements-in-cassandra-2-0
Specific technologies required: Python, Cassandra
Extra notes:
Description of requirements/functionality: I need to do a batch `INSERT` in `Cassandra` using `Python`.
I am using the latest `Datastax` python driver.
The `INSERTS` are batches of columns that will be in the same row. I will have many rows to insert, but chunks of the data will be in the same row.
I can do individual `INSERTS` in a `for loop` as described in this post:
http://stackoverflow.com/questions/15683989/parameterized-queries-with-the-python-cassandra-module
I am using parametrized query, values as shown in that example.
This did not help:
http://stackoverflow.com/questions/17885238/how-to-multi-insert-rows-in-cassandra
I am not clear how to assemble a parameterized:
BEGIN BATCH
query values1
query values2
...
APPLY BATCH;
cursor.execute(batch_query)
Is this even possible? Will this speed up my `INSERTS`? I have to do millions. Even thousands take too long.
I found some Java info:
http://www.datastax.com/dev/blog/client-side-improvements-in-cassandra-2-0
Specific technologies required: Python, Cassandra
Extra notes:
Pete P.
100% (9)Projects Completed
12
Freelancers worked with
12
Projects awarded
65%
Last project
15 Sep 2014
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies