separate db conneciton pools for each process

This commit is contained in:
Ian Norden
2020-05-06 16:16:56 -05:00
parent fbd4a5ca6a
commit fb6fdfcc13
4 changed files with 25 additions and 17 deletions
@@ -7,7 +7,7 @@ CREATE TABLE btc.header_cids (
cid TEXT NOT NULL,
timestamp NUMERIC NOT NULL,
bits BIGINT NOT NULL,
node_id INTEGER NOT NULL REFERENCES nodes (id) ON DELETE CASCADE,
node_id INTEGER NOT NULL REFERENCES nodes (id) ON DELETE CASCADE,
UNIQUE (block_number, block_hash)
);