miscellaneous indexer improvements: 1) Seperate reindexing logic from the index.
D-Stacks opened this issue · comments
- Currently reindexing logic is done within the index while holding it's lock
- This should be possible to do outside of the write lock.
ideally we would want a per consensus notification reindexer to perform the reindex inside the index processor and then simply supply the result to the index for committance to its Db.
A per consensus notification approach should be preferred, as
-
- the index processor processes on a per notification basis,
-
- reindexer looping and logic can supply reindexed notification conversion results separately for each index wanting information from a certain notification, without potentially re-preforming looping and certain logic from scratch.