0

If I have 2 column families one for customer info and another for customer address info, how can I insert customer info and their address info to the two separate column families with the same row key(customer id) ?

JayaniH
  • 293
  • 1
  • 2
  • 9

1 Answers1

1

Use the batch insert.

BEGIN BATCH
  DML for insert into customer info ;
  DML for insert into customer address info, ;
APPLY BATCH ;

Why do you need two tables with the same primary? Can't you club them into one?

GAK
  • 1,018
  • 1
  • 14
  • 33