-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add id column as PRIMARY KEY for evm.logs & evm.log_poller_blocks #1441
Open
reductionista
wants to merge
13
commits into
ccip-develop
Choose a base branch
from
log_poller_id_columns
base: ccip-develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+393
−281
Commits on Sep 20, 2024
-
Manually merged in from chainlink repo:
BCI-3492 [LogPoller]: Allow withObservedExecAndRowsAffected to report non-zero rows affected (#14057) * Fix withObservedExecAndRowsAffected Also: - Change behavior of DeleteExpiredLogs to delete logs which don't match any filter - Add a test case to ensure the dataset size is published properly during pruning * pnpm changeset * changeset #fix -> #bugfix
Configuration menu - View commit details
-
Copy full SHA for 3cc98be - Browse repository at this point
Copy the full SHA 3cc98beView commit details -
Add id column as PRIMARY KEY for evm.logs & evm.log_poller_blocks
Also: - Add UNIQUE INDEXes to replace previous primary keys (still necessary, both for optimizing queries and for enforcing uniqueness constraints) - Replace all SELECT *'s with helper functions for selecting all columns - Refactor nestedBlockQuery into withConfs, and make a bit more use of it
Configuration menu - View commit details
-
Copy full SHA for ed144e0 - Browse repository at this point
Copy the full SHA ed144e0View commit details -
Some of the columns in these indexes (such as created_at) are no longer used. Others were not optimized for the queries we need.
Configuration menu - View commit details
-
Copy full SHA for 9ace2c0 - Browse repository at this point
Copy the full SHA 9ace2c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90dd2e7 - Browse repository at this point
Copy the full SHA 90dd2e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac60768 - Browse repository at this point
Copy the full SHA ac60768View commit details -
Update test for fromBlock >= :block_number
Previously it was using fromBlock > :block_number which is inconsistent with the other fromBlocks in queries
Configuration menu - View commit details
-
Copy full SHA for bb4d81b - Browse repository at this point
Copy the full SHA bb4d81bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8268f0 - Browse repository at this point
Copy the full SHA e8268f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1fc86b - Browse repository at this point
Copy the full SHA e1fc86bView commit details -
Fix bug in merged commit from develop
On a node with more than one chain, each LogPoller would have deleted all logs from chains it's not running on! Because of the LEFT JOIN, ON evm_chain_id = $1 does not filter out any rows where evm_chain_id != $1; only WHERE evm_chain_id = $1 can do that
Configuration menu - View commit details
-
Copy full SHA for 49e2fa7 - Browse repository at this point
Copy the full SHA 49e2fa7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bfea8c - Browse repository at this point
Copy the full SHA 5bfea8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a0568d - Browse repository at this point
Copy the full SHA 7a0568dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ff9472 - Browse repository at this point
Copy the full SHA 1ff9472View commit details -
Configuration menu - View commit details
-
Copy full SHA for a99e37f - Browse repository at this point
Copy the full SHA a99e37fView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.