Skip to content

Commit

Permalink
chore: Analyze tx_bootstrap_witnesses and tx_witnesses table
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-QuanLeA committed Feb 29, 2024
1 parent bc44835 commit e0545ef
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions docs/migration-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,11 @@
| tx_id | tx_hash |
- References tables:
- Query used in explorer:
| | Query | Table related | Note |
| -------------------- | ------------------------ | ------------------------------------------------ | ---- |
| TxMetadataRepository | findAllByTxOrderByKeyAsc | | |
| | findAllByTxHash | | |
| MaTxMintRepository | getTxMetadataToken | - tx_metadata<br> - ma_tx_mint<br> - multi_asset | |
| | Query | Table related | Note |
| -------------------- | ------------------------ | -------------------------------------------------- | ---- |
| TxMetadataRepository | findAllByTxOrderByKeyAsc | | |
| | findAllByTxHash | | |
| MaTxMintRepository | getTxMetadataToken | - `tx_metadata`<br> - ma_tx_mint<br> - multi_asset | |

10. Analyze tx_bootstrap_witnesses table (Can replaced with transaction_witness in yaci_store DB)
- Compare columns with yaci store:
Expand All @@ -350,6 +350,26 @@
| chain_code | additional_data |
| attributes | additional_data |
- References tables:
- Query use in explorer:
| | Table related | Note |
| --- | ------------- | ---- |
- Query used in explorer:
| Query | Table related | Note |
| ----------- | ------------- | ----------------------------- |
| findAllByTx | | Only using `public_key` columns |

💡Note: Should create an index for the `type` column.

11. Analyze tx_witnesses table (Can replaced with transaction_witness in yaci_store DB)
- Compare columns with yaci store:
| Ledger_Sync DB | Yaci_Store DB |
| ------------------------- | ------------- |
| tx_id | tx_hash |
| key | pub_key |
| signature | signature |
| index_arr, index_arr_size | idx |
| type | type |
- References tables:
- Query used in explorer:
| Query | Table related | Note |
| ----------- | ------------- | ------------------------------------------ |
| findAllByTx | | Only using `public_key` and `indexArr` columns |

💡Note: Should create an index for the `type` column.

0 comments on commit e0545ef

Please sign in to comment.