Skip to content
Snippets Groups Projects
Commit d97527c2 authored by Michal Zander's avatar Michal Zander
Browse files

Move index creation after massive sync

parent d51fb0d4
Branches
No related tags found
1 merge request!294New block API
......@@ -64,9 +64,7 @@ BEGIN
(
block_num INT NOT NULL,
op_type_id INT NOT NULL,
op_count INT NOT NULL,
CONSTRAINT pk_block_operations PRIMARY KEY (op_type_id, block_num)
op_count INT NOT NULL
);
PERFORM hive.app_register_table( 'hafbe_app', 'block_operations', 'hafbe_app' );
......
......@@ -14,6 +14,8 @@ BEGIN
CREATE INDEX IF NOT EXISTS account_proxies_history_timestamp ON hafbe_app.account_proxies_history USING btree (timestamp);
CREATE INDEX IF NOT EXISTS account_proxies_history_account_id ON hafbe_app.account_proxies_history USING btree (account_id);
CREATE INDEX IF NOT EXISTS current_account_proxies_proxy_id ON hafbe_app.current_account_proxies USING btree (proxy_id);
CREATE INDEX IF NOT EXISTS block_operations_block_num ON hafbe_app.block_operations USING btree (block_num);
CREATE UNIQUE INDEX IF NOT EXISTS block_operations_op_type_id_block_num ON hafbe_app.block_operations USING btree (op_type_id, block_num);
END
$$;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment