Open hhstore opened 6 years ago
区块链是: 单次写入, 频繁读取. 属于读多写少的场景
读写速度(查询效率): 增大块大小, 不利于 频繁读取. 搜索单条记录更慢. 块越小, 检索单笔tx越快.
网络传输开销: 块越大, 传输越慢, 越容易失败, 网络不可靠, 重新寻找路由更慢.
磁盘存储开销: 单个块越大, 要检索部分信息, 所附带存储的内容越多. 占用更多不必要的存储空间.
块浪费: 交易填不满块大小.
建造一栋楼, 所有砖瓦, 都是标准大小. 没有人设计一面墙大小的砖块.
错误的设计方向:
增大块大小的缺陷:
区块链是: 单次写入, 频繁读取. 属于读多写少的场景
读写速度(查询效率): 增大块大小, 不利于 频繁读取. 搜索单条记录更慢. 块越小, 检索单笔tx越快.
网络传输开销: 块越大, 传输越慢, 越容易失败, 网络不可靠, 重新寻找路由更慢.
磁盘存储开销: 单个块越大, 要检索部分信息, 所附带存储的内容越多. 占用更多不必要的存储空间.
块浪费: 交易填不满块大小.
建造一栋楼, 所有砖瓦, 都是标准大小. 没有人设计一面墙大小的砖块.
设计者的私心:
应用场景: