commerceblock/ocean

policy: list performance improvements

Opened this issue · 1 comments

For freeze list, burn list, request list there are two alternatives:

  1. Move all lists to leveldb
    Dedicated key-value db for each. Require significant code changes to amend the db model, create a db handler and change current list models.

  2. Generic list handling
    Currently each list is loaded separately which is very inefficient. Should create a generic solution to handle all list Load, Update, Delete at the same time.

!!! For asset history and freeze history the best way might be (1) as they require a rescan at the moment. !!!

unencrypted whitelist no longer requires rescan
encrypted one requires reindex #196