question

maruti.nitj_91373 avatar image
maruti.nitj_91373 asked Erick Ramirez commented

Is there a way for DSBulk to reuse the connection for all tables in the same keyspace?

Is there a way to have dsbulk reuse the connection object instead of doing the connection for each table for the same keyspace.


dsbulk
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered Erick Ramirez commented

@maruti.nitj_91373 The DSBulk utility isn't designed to be a long-running application and is meant to be run on one table at a time.

What is your concern about DSBulk opening new connections to the cluster when you load/unload a table? If you give us additional information on what you're trying to achieve, we might be able to provide a solution. Cheers!

2 comments Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

maruti.nitj_91373 avatar image maruti.nitj_91373 commented ·

When we use dsbulk to unload and load data from multiple tables , assume its a script invoked with a while loop for each table in the key space, idea is just to have a way for dsbulk to establish the connection once and load different tables in the key space. But I See the utility is designed to run one table @ a time , so I believe that answers my question.

0 Likes 0 ·
Erick Ramirez avatar image Erick Ramirez ♦♦ maruti.nitj_91373 commented ·

Glad to hear. Cheers!

0 Likes 0 ·