This would speed up most of our transactions query.
When we sync we store first the raw tx as it (with serde probably).
When we update the inputs, we could update our raw tx.
Maybe at finalisation we could also make sure it's correct.
Also when an output is spent, we could update this raw tx. It depends what level of details we want in the raw tx, maybe no need for such details.
This would speed up most of our transactions query.
When we sync we store first the
rawtx as it (withserdeprobably).When we update the inputs, we could update our
rawtx.Maybe at finalisation we could also make sure it's correct.
Also when an output is spent, we could update this raw tx. It depends what level of details we want in the
rawtx, maybe no need for such details.