-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(coprocessor): add transaction-based performance metrics #919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7c4b2cb
89bd1de
afe3f5a
5671b26
96c6c3c
8c65ef7
23f0c25
e130138
cb4ec0e
7b5de35
60033a5
26d885a
699553b
3dc9f37
55a995c
f2984c6
8688603
e7f819b
9ddc996
6016276
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| -- Add transaction_id column to pbs_computations (if not present) | ||
| ALTER TABLE pbs_computations | ||
| ADD COLUMN IF NOT EXISTS transaction_id bytea NULL; | ||
| CREATE INDEX IF NOT EXISTS idx_pbs_computations_transactions ON pbs_computations USING HASH (transaction_id); | ||
|
|
||
| -- Add transaction_id column to allowed_handles (if not present) | ||
| ALTER TABLE allowed_handles | ||
| ADD COLUMN IF NOT EXISTS transaction_id bytea NULL; | ||
| CREATE INDEX IF NOT EXISTS idx_allowed_handles_transactions ON allowed_handles USING HASH (transaction_id); | ||
|
|
||
| -- Add transaction_id column to verify_proofs (if not present) | ||
| ALTER TABLE verify_proofs | ||
| ADD COLUMN IF NOT EXISTS transaction_id bytea NULL; | ||
| CREATE INDEX IF NOT EXISTS idx_verify_proofs_transactions ON verify_proofs USING HASH (transaction_id); | ||
|
|
||
| -- Add transaction_id column to ciphertext_digest (if not present) | ||
| ALTER TABLE ciphertext_digest | ||
| ADD COLUMN IF NOT EXISTS transaction_id bytea NULL; | ||
| CREATE INDEX IF NOT EXISTS idx_ciphertext_digest_transactions ON ciphertext_digest USING HASH (transaction_id); | ||
|
|
||
| CREATE TABLE transactions ( | ||
| id BYTEA PRIMARY KEY, | ||
| chain_id BIGINT NOT NULL, | ||
| created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), | ||
| block_number BIGINT NOT NULL, | ||
| completed_at TIMESTAMPTZ DEFAULT NULL | ||
| ); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| -- For completed txns | ||
| CREATE INDEX idx_transactions_completed_createdat | ||
| ON transactions (created_at) | ||
| WHERE completed_at IS NOT NULL; | ||
|
|
||
| -- For incomplete txns | ||
| CREATE INDEX idx_transactions_incomplete_createdat | ||
| ON transactions (created_at) | ||
| WHERE completed_at IS NULL; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.