Skip to content

Commit

Permalink
perf(sqlite graphql): add a transaction_id index on new_transaction_t…
Browse files Browse the repository at this point in the history
…ags PE-3769

Since we run a separate query to retrieve tags by transaction_id for
each transaction returned, this substantially improves performance when
querying new transactions (stable transactions already have a similar
index).
  • Loading branch information
djwhitt committed Jun 5, 2023
1 parent 3949a76 commit a338119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE INDEX IF NOT EXISTS new_transaction_tags_transaction_id_idx ON new_transaction_tags (transaction_id);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP INDEX IF EXISTS new_transaction_tags_transaction_id_idx;

0 comments on commit a338119

Please sign in to comment.