Repository navigation
@odatano/nightgate 0.25.7
@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_INDEXESgainsTransactionFees.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 PostgreSQLDESC NULLS LAST
(IndexSpec.postgres,indexStatement(spec, kind));$orderby=createdAt desc,
byTypeandhistoryread the index instead of sorting the table.- Created at start with IF NOT EXISTS. Large live PostgreSQL: create all nine
once withCREATE INDEX CONCURRENTLYbefore the upgrade; a plain CREATE
INDEX at start holds a write lock on the table for the build. network: mainnetnow defaults towss://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