Skip to content

@odatano/nightgate 0.25.7

Choose a tag to compare

@maxalexweber1 maxalexweber1 released this 25 Sep 12:29
· 76 commits to main since this release
d2b8a0e

@odatano/nightgate 0.25.7

Nine new secondary indexes for the indexer supplement pass and newest-first
reads. No schema change, no migration, no config change.

  • NIGHTGATE_INDEXES gains TransactionFees.transaction_ID,
    TransactionSegments.transactionResult_ID, ContractBalances.contractAction_ID,
    ZswapLedgerEvents.transaction_ID, DustLedgerEvents.transaction_ID: the
    supplement pass updates and deletes through an index, no full table scan.
  • Blocks.createdAt, Transactions.createdAt, ContractActions.createdAt,
    Transactions(txType, createdAt): DESC, on PostgreSQL DESC NULLS LAST
    (IndexSpec.postgres, indexStatement(spec, kind)); $orderby=createdAt desc,
    byType and history read the index instead of sorting the table.
  • Created at start with IF NOT EXISTS. Large live PostgreSQL: create all nine
    once with CREATE INDEX CONCURRENTLY before the upgrade; a plain CREATE
    INDEX at start holds a write lock on the table for the build.
  • network: mainnet now defaults to wss://rpc.mainnet.midnight.network/ and
    indexer.mainnet.midnight.network; before, the node URL fell back to the
    preprod relay and the indexer pointed at a host that does not answer.

Full Changelog: v0.25.6...v0.25.7