tonbo-io / tonbo

A portable embedded database using Arrow.
https://tonbo.io
Apache License 2.0
795 stars 46 forks source link

refactor: Context component on read / write path #214

Open ethe opened 2 weeks ago

ethe commented 2 weeks ago

Tonbo's read and write path needs a lot of context (version, storage manager and lru cache), such as storage manager, it might be used in the bottom of the read path but be initialized in the top-level (db instances). In the current, we just simply pass through them from top-level to bottom-level, it is ugly and expose implementations to those context agnostic layers. Therefore, use a unified context component to manage those would be better.