cache prefixes for prefix-based iteration

This commit is contained in:
Ian Norden
2020-09-11 07:35:41 -05:00
parent f5a12a8d3f
commit 147186e529
5 changed files with 32 additions and 12 deletions
@@ -1,6 +1,7 @@
-- +goose Up
CREATE TABLE IF NOT EXISTS eth.key_preimages (
eth_key BYTEA UNIQUE NOT NULL,
prefix BYTEA,
ipfs_key TEXT NOT NULL REFERENCES public.blocks (key) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
);