Skip to content

Commit

Permalink
feat: Upgrade sql index (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Jan 9, 2023
1 parent 254604f commit 4cf64ce
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ create table if not exists "VAR_LEDGER_NAME".postings (
);

--statement
create index postings_src on "VAR_LEDGER_NAME".postings using GIN(source);
create index if not exists postings_src on "VAR_LEDGER_NAME".postings using GIN(source);
--statement
create index postings_dest on "VAR_LEDGER_NAME".postings using GIN(destination);
create index if not exists postings_dest on "VAR_LEDGER_NAME".postings using GIN(destination);
--statement
create index postings_txid on "VAR_LEDGER_NAME".postings (txid asc);
create index if not exists postings_txid on "VAR_LEDGER_NAME".postings (txid asc);

--statement
insert into "VAR_LEDGER_NAME".postings(txid, posting_index, source, destination)
Expand Down

0 comments on commit 4cf64ce

Please sign in to comment.