Skip to content

jamshidh/ethereum-data-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is a library of common data structures for the ethereum haskell project.

Indexing recommendations:
Run psql eth while ethereumH is populating the database and

CREATE INDEX CONCURRENTLY ON block_data_ref (block_id);
CREATE INDEX CONCURRENTLY ON block_data_ref (number);
CREATE INDEX CONCURRENTLY ON block_data_ref (hash);
CREATE INDEX CONCURRENTLY ON block_data_ref (parent_hash);
CREATE INDEX CONCURRENTLY ON block_data_ref (coinbase);

CREATE INDEX CONCURRENTLY ON address_state_ref (address);

CREATE INDEX CONCURRENTLY ON raw_transaction (from_address);
CREATE INDEX CONCURRENTLY ON raw_transaction (to_address);
CREATE INDEX CONCURRENTLY ON raw_transaction (block_id);
CREATE INDEX CONCURRENTLY ON raw_transaction (block_number); 

CREATE INDEX CONCURRENTLY ON storage (key);



About

definitions and sql storage for the Ethereum Haskell project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published