且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

HBase一对多的“关系"存储

更新时间:2022-12-26 20:51:19

通常,选项a是更好的方法.

Generally, option a, is the better approach.

这使您可以轻松地一次请求一个帐户的所有交易.对于每笔交易,都不需要其他查找.

This allows you to easily request all the transactions for an account at once. No additional lookup is needed, for each transaction.

在某些情况下,选项b可能适用,例如对所有事务频繁运行的查询.

There are use cases where option b may be appropriate, such as frequently running queries on all of the transactions.