hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wilm Schumacher <wilm.schumac...@gmail.com>
Subject Re: Fwd: data base design question
Date Thu, 12 Feb 2015 21:23:45 GMT
Am 12.02.2015 um 21:12 schrieb Dima Spivak:
> Is there a better alternative than  above options for one to many
> relationships?

you could use a column family in table 2 for that.

table 1
result1 data:foo => bar
result2 data:foo => baz
result3 data:foo => bar
result4 data:foo => baz
....

table 2
order1 data:metadata => foobar , result:1 => result1, result:2 => result2
order1 data:metadata => foobaz , result:1 => result3, result:2 =>
result4 , ....

Seems to be the best plan.

Best wishes

Wilm

Mime
View raw message