-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance improvements in uni-info-watcher event processing (#348)
* Avoid loading relations when fetching entity in mapping code * Load relations for Position entity separately in nfpm mapping code * Remove join table for token whitelistPools and save as array of ids * Add indexing of token properties in erc20-watcher and fix smoke-tests (#4) * Add indexing of token properties in erc20-watcher * Fix uni-info-watcher smoke-test * Fix for saving token whitelistPools as array of ids * Replace eth calls in uni-info-watcher with storage calls (#5) * Remove entity relation foreign keys and only save entity id * Use only typeorm delete for removeEntities * Implement CLI for checking config endpoints Co-authored-by: prathamesh0 <[email protected]>
- Loading branch information
1 parent
170e8ef
commit 8410da4
Showing
37 changed files
with
691 additions
and
601 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// Copyright 2022 Vulcanize, Inc. | ||
// | ||
|
||
import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; | ||
|
||
@Entity() | ||
@Index(['blockHash', 'token'], { unique: true }) | ||
export class Decimals { | ||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@Column('varchar', { length: 66 }) | ||
blockHash!: string; | ||
|
||
@Column('integer') | ||
blockNumber!: number; | ||
|
||
@Column('varchar', { length: 42 }) | ||
token!: string; | ||
|
||
@Column('integer') | ||
value!: number; | ||
|
||
@Column('text', { nullable: true }) | ||
proof!: string; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// Copyright 2022 Vulcanize, Inc. | ||
// | ||
|
||
import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; | ||
|
||
@Entity() | ||
@Index(['blockHash', 'token'], { unique: true }) | ||
export class Name { | ||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@Column('varchar', { length: 66 }) | ||
blockHash!: string; | ||
|
||
@Column('integer') | ||
blockNumber!: number; | ||
|
||
@Column('varchar', { length: 42 }) | ||
token!: string; | ||
|
||
@Column('varchar') | ||
value!: string; | ||
|
||
@Column('text', { nullable: true }) | ||
proof!: string; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// Copyright 2022 Vulcanize, Inc. | ||
// | ||
|
||
import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; | ||
|
||
@Entity() | ||
@Index(['blockHash', 'token'], { unique: true }) | ||
export class Symbol { | ||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@Column('varchar', { length: 66 }) | ||
blockHash!: string; | ||
|
||
@Column('integer') | ||
blockNumber!: number; | ||
|
||
@Column('varchar', { length: 42 }) | ||
token!: string; | ||
|
||
@Column('varchar') | ||
value!: string; | ||
|
||
@Column('text', { nullable: true }) | ||
proof!: string; | ||
} |
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
Oops, something went wrong.