perlcassa icon indicating copy to clipboard operation
perlcassa copied to clipboard

"real" bulk inserts

Open rherget opened this issue 10 years ago • 1 comments

I'm looking for a way to bulk insert into one column family with different keys and different col-keys: e.g.: column family "test" "key1" => "col1" => "data1" "key2" => "col1" => "data2" "key3" => "col2" => "data3" ...

bulk_insert() is missing the functionality to set a different key on every mutation, as far as I can see.

I would implement that myself, but which way? a) add a new method, something like "bulk_insert2()"? b) change bulk_insert(), making the new version incompatible to the old one? c) write some kind of glue code inside bulk_insert() to switch behavior (e.g. based on "exists($opts{key})"? d) any other ideas?!

Any ideas or hints for me?

rherget avatar Aug 19 '14 14:08 rherget

INMHO:

Create a branch, add a new method to it test i yourself. Then test it using old behavior for compatibility. If it works mark it with TBD commentethmment saying this will replace th old method with additional comment saying the old method will be deprecated

Regards Chanan

19 באוג 2014 כותב:

I'm looking for a way to bulk insert into one column family with different keys and different col-keys: e.g.: column family "test" "key1" => "col1" => "data1" "key2" => "col1" => "data2" "key3" => "col2" => "data3" ...

bulk_insert() is missing the functionality to set a different key on every mutation, as far as I can see.

I would implement that myself, but which way? a) add a new method, something like "bulk_insert2()"? b) change bulk_insert(), making the new version incompatible to the old one? c) write some kind of glue code inside bulk_insert() to switch behavior (e.g. based on "exists($opts{key})"? d) any other ideas?!

Any ideas or hints for me?


Reply to this email directly or view it on GitHub: https://github.com/mkjellman/perlcassa/issues/59

-- Sent with K-@ Mail - the evolution of emailing.

bchanan03 avatar Aug 19 '14 15:08 bchanan03