Norman Meyer

@n0izn0iz

Joined on Jul 14, 2022

  • The teritori indexer has various chances to miss events since it's inception, here's the explaination of what it does, what happens and what are the ideas for fixing it The goal The teritori indexer is an event sourced system that sequentially reads all transactions of the teritori chain from genesis in order to populate a database with aggregated data that can't be properly queried from the chain and smart contracts directly The naive flow Choose a chunk_size (max number of blocks queried and processed in one database transaction) Read or initialize a field in the database that keeps track of the height of the next block to process (height_cursor)
     Like  Bookmark