Skip to content

Commit

Permalink
fix(core-database): use GIN index on transactions.asset (#3949)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastijankuzner authored Aug 11, 2020
1 parent 0ff67a9 commit 37ac35e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MigrationInterface, QueryRunner } from "typeorm";
export class AddBlocksAndTransactionsIndexes20200317000000 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.query(`
CREATE INDEX transactions_asset ON transactions(asset);
CREATE INDEX transactions_asset ON transactions USING GIN(asset);
CREATE INDEX transactions_amount ON transactions(amount);
CREATE INDEX transactions_fee ON transactions(fee);
CREATE INDEX transactions_nonce_idx ON transactions(nonce);
Expand Down

0 comments on commit 37ac35e

Please sign in to comment.