chaingraph
chaingraph copied to clipboard
Change block insert trigger to use index lookup
This PR changes the INNER JOIN condition to lookup inputs by indexed columns transaction_internal_id and outpoint_index. Otherwise full sequence scan is performed taking up to between 12-18 minutes on a fully synched instance.