Skip to content

Commit

Permalink
Refactor: Indexer Performance Improvements (#14)
Browse files Browse the repository at this point in the history
* fix(logger): initialize after loading .env

Initialize the logger after the .env is read to include the RUST_LOG variable in the logger's initialization.

* wip(indexer): bulk insert register logs

Refactors register log backfilling to  use a bulk insertion and parallel block fetching.

* refactor(indexer): use get_block_timestamp util fn

* refactor(indexer): use u32 for unsigned integer type safety

* refactor(IdRegistry): optimize performance

* feat(IdRegistry): batch insert chain events

* feat(indexer): optimized key registry logs

* feat(indexer): adds time remaining to cli

* refactor(indexer): improves code reuse

* refactor(indexer): fetch logs in parallel

* fix(indexer): miscellaneous fixes and improvements

* fix(indexer): typo

* refactor(indexer): use transactions to insert to the database

* fix(indexer): requested changes
  • Loading branch information
gregfromstl authored Feb 27, 2024
1 parent 67c0b31 commit 38dcf41
Show file tree
Hide file tree
Showing 6 changed files with 1,458 additions and 317 deletions.
Loading

0 comments on commit 38dcf41

Please sign in to comment.