Skip to content

Commit 0cde527

Browse files
jsvisarjl493456442
andauthored
core/rawdb: inspect database in parallel (#32506)
`db inspect` on the full database currently takes **30min+**, because the db iterate was run in one thread, propose to split the key-space to 256 sub range, and assign them to the worker pool to speed up. After the change, the time of running `db inspect --workers 16` reduced to **10min**(the keyspace is not evenly distributed). --------- Signed-off-by: jsvisa <[email protected]> Co-authored-by: Gary Rong <[email protected]>
1 parent 3aeccad commit 0cde527

File tree

1 file changed

+203
-141
lines changed

1 file changed

+203
-141
lines changed

0 commit comments

Comments
 (0)