Skip to content

Commit 5182a9b

Browse files
committed
patch for alex
1 parent 58f8497 commit 5182a9b

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- "v**" # e.g. v1.0.0
88

99
env:
10-
IMAGE_REPO: ghcr.io/gaze-network/gaze-indexer
10+
IMAGE_REPO: ghcr.io/alexgo-io/gaze-indexer
1111

1212
jobs:
1313
prepare:
@@ -33,5 +33,5 @@ jobs:
3333
with:
3434
context: .
3535
dockerfile: Dockerfile
36-
image-repo: "ghcr.io/gaze-network/gaze-indexer"
36+
image-repo: "ghcr.io/alexgo-io/gaze-indexer"
3737
image-tag: ${{ needs.prepare.outputs.tag }}

modules/runes/database/postgresql/queries/data.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ SELECT * FROM runes_entries
110110
SELECT rune_id FROM runes_entries WHERE rune = $1;
111111

112112
-- name: GetRuneTransactions :many
113+
WITH rs AS MATERIALIZED (
113114
SELECT * FROM runes_transactions
114115
LEFT JOIN runes_runestones ON runes_transactions.hash = runes_runestones.tx_hash
115116
WHERE (
@@ -126,7 +127,9 @@ SELECT * FROM runes_transactions
126127
) AND (
127128
@from_block <= runes_transactions.block_height AND runes_transactions.block_height <= @to_block
128129
)
129-
ORDER BY runes_transactions.block_height DESC, runes_transactions.index DESC LIMIT $1 OFFSET $2;
130+
ORDER BY runes_transactions.block_height DESC, runes_transactions.index DESC
131+
)
132+
SELECT * FROM rs LIMIT $1 OFFSET $2;
130133

131134
-- name: GetRuneTransaction :one
132135
SELECT * FROM runes_transactions

modules/runes/repository/postgres/gen/data.sql.go

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)