-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2pg,abi2: add unique index on pg tables by default
E2PG will look at each integration and figure out a default set of columns to create a unique index on. Since the following columns are required: intg_name, src_name, block_num, and tx_idx, E2PG will start with that as a unique index. If your integration also accessed data from a log it will include log_idx. If the log contains ABI encoded data it will include abi_idx as well. If you provide your own set of unique columns then E2PG will not supply a unique index and instead it will create the one you supplied. For example: { "integrations": [ { "table": { "unique": [ ["my_unique_hash"] ] } } ] } This behaviour can be disabled by the following config: { "integrations": [ { "table": { "disable_unique": true } } ] } (Only showing the relevant config field path. Other required config is omitted for brevity)
- Loading branch information
1 parent
a85dc16
commit 725d899
Showing
3 changed files
with
104 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters