Skip to content

Commit f663934

Browse files
committed
add initial block analysis to sqlite db
This commit introduces the new approach we take towards local data analysis: build up a database of pertinent information. We start with some low-hanging fruit on individual blocks. The new DB logic supports sqlite for now, both in in-memory mode for tests, and to a DB file for persistence. No attempts are made at recognizing existing data in an existing DB. As an optimization, we buffer 1000 blocks before we commit data to the DB. This is done in an admittedly hacky manner, to be cleaned up later.
1 parent e051962 commit f663934

File tree

14 files changed

+522
-4
lines changed

14 files changed

+522
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ target
22
csvdump
33

44
**/LOG*
5+
**/*.db
6+
**/*.db-journal

0 commit comments

Comments
 (0)