Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"real" bulk inserts #59

Open
rherget opened this issue Aug 19, 2014 · 1 comment
Open

"real" bulk inserts #59

rherget opened this issue Aug 19, 2014 · 1 comment

Comments

@rherget
Copy link

rherget commented Aug 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?

@bchanan03
Copy link

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:
#59

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants