+
Skip to content

Concurrent operations #26

@mappum

Description

@mappum

Everything other than the RocksDB compaction is currently run in the same thread. We should be able to trivially split up the first pass (changing the tree structure) across N workers with no synchronization other than joining left and right. Splitting up the second pass (hashing and writing to RocksDB) can be done similarly, but will either require an efficient data structure for merging the different batches of RocksDB writes, or even possibly writing to RocksDB in separate workers with some kind of protocol to make the separate writes atomic (e.g. each is written with an OptimisticTransaction, with all of them committed in a single commit operation if possible).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载