Commit cb9be30
committed
perf: add composite indexes on event table for NFT query optimization
- idx_event_addr_t0_t3: (address, topic0, topic3, block_number DESC,
log_index DESC) — covers NFT detail page transfer lookups with sort
- idx_event_t0_t1: (topic0, topic1) — speeds up contract discovery and
ownership reconstruction (from-address branch)
- idx_event_t0_t2: (topic0, topic2) — same for to-address branch
- Add indexes to rsk-explorer-database.sql base creation script
- Add testnet staging NFT holder addresses to index script
Made-with: Cursor1 parent 4f93182 commit cb9be30
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
486 | 489 | | |
487 | 490 | | |
488 | 491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
194 | 197 | | |
195 | 198 | | |
196 | 199 | | |
| |||
0 commit comments