Skip to content

Commit 95a33a9

Browse files
committed
fix(coprocessor): add missing indexes on verify_proofs and dependence_chain tables
1 parent f0fc4ea commit 95a33a9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- Improve indexing for verify_proofs table
2+
3+
CREATE INDEX IF NOT EXISTS idx_verify_proofs_verified_not_null
4+
ON verify_proofs (retry_count);
5+
6+
-- Improve indexing for dependence_chain table
7+
8+
CREATE INDEX IF NOT EXISTS idx_dependence_chain_unlock
9+
ON dependence_chain (lock_expires_at, last_updated_at)
10+
WHERE dependency_count = 0;
11+

0 commit comments

Comments
 (0)