runonbitcoin / run-db

An indexer that crawls the blockchain and calculates RUN states
MIT License
24 stars 22 forks source link

Move Unexecuted Set to Database #14

Closed brentongunning closed 3 years ago

brentongunning commented 3 years ago

Reduces memory requirements and start-up time by moving the unexecuted transaction set out of memory and into the database. Run-DB will now startup but the transactions will not start executing right away. They will be loaded from the database in the background, so after a minute or two you should start to see transactions execute. For testing purposes, I also changed the API=none to not download transactions by default, which is probably also what people would expect it to do.

Results

codecov[bot] commented 3 years ago

Codecov Report

Merging #14 (66173e5) into master (35e3e50) will increase coverage by 2.29%. The diff coverage is 80.35%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #14      +/-   ##
==========================================
+ Coverage   81.37%   83.67%   +2.29%     
==========================================
  Files           9        9              
  Lines         988      888     -100     
==========================================
- Hits          804      743      -61     
+ Misses        184      145      -39     
Impacted Files Coverage Δ
src/server.js 65.98% <ø> (+1.51%) :arrow_up:
src/database.js 83.33% <79.62%> (+4.55%) :arrow_up:
src/downloader.js 74.00% <100.00%> (+0.53%) :arrow_up:
src/indexer.js 90.11% <100.00%> (+0.34%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 35e3e50...66173e5. Read the comment docs.