Skip to content

Commit

Permalink
refactor(iota-indexer): add new tables to db schema (#1975)
Browse files Browse the repository at this point in the history
Co-authored-by: Thibault Martinez <[email protected]>
  • Loading branch information
sergiupopescu199 and thibault-martinez authored Aug 22, 2024
1 parent 303e401 commit 6e15341
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/iota-indexer/database_schema.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 27 additions & 2 deletions crates/iota-indexer/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,35 @@ The Indexer pulls checkpoint data from the full node and populates the tables sh
| -------------------------------------- | ------------------ | --------- |
| tx_recipients_tx_sequence_number_index | tx_sequence_number | ASC |

### Table `tx_count_metrics`

| Index name | Keys |
| ----------------------------- | ------------ |
| tx_count_metrics_epoch | epoch |
| tx_count_metrics_timestamp_ms | timestamp_ms |

### Table `move_calls`

| Index name | Keys |
| ------------------------ | ----------------------------------------------- |
| idx_move_calls_epoch_etc | epoch, move_package, move_module, move_function |

### Table `move_call_metrics`

| Index name | Keys |
| --------------------------- | ---------- |
| move_call_metrics_epoch_day | epoch, day |

### Table `address_metrics`

| Index name | Keys |
| ------------------------- | ----- |
| address_metrics_epoch_idx | epoch |

## Partitions

### Tables `transactions`, `objects_history`

| Keys | Condition |
| :------------------------: | :-------------------------------: |
| Keys | Condition |
| -------------------------- | --------------------------------- |
| checkpoint_sequence_number | FOR VALUES FROM (0) TO (MAXVALUE) |

0 comments on commit 6e15341

Please sign in to comment.