在 lealone 8.0 中,索引数据保存在 KeyPage 中,一条索引对应一个 IndexKey 对象,它只有两个字段;表的数据保存在 RowPage 中,一条记录对应一个 Row 对象,它只有3个字段。IndexKey 和 Row 对象都已经优化到了极致,它们的字段数都无法再减少了。截图是某个 KeyPage 和 RowPage 的内存快照。

https://postimg.cc/gallery/tCvpRwy

Reply to this note

Please Login to reply.

Discussion

No replies yet.