-
While browsing the documentation of Ogmios, I saw a warning section under state query, saying that
Does it mean UTXO query by address will be removed in the next major release of Ogmios? Or is it simply not recommended but will still be supported? By the way, I really appreciate that you are spending your part time building Ogmios, which is extremely helpful and a true gem for the community. Thank you, Matthias! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hey @cffls, it is deprecated because I was informed that the ledger team is also deprecating this query now that the ledger is moving to on-disk storage. The UTxO is indexed by output references, not by addresses. This means that, searching by address requires a linear scan of the UTxO which is getting big. This is why on 1.33.0 that query has got a major performance hit (traversing millions of entries in the RAM is okay-ish, doing it from the disk is worse)... If it is eventually removed from the ledger, then sadly, I'll have to follow and remove it from Ogmios as I'd have no (sane) way to support this. However, I have been aware of this issue for a while now and... bear with me for a few more days 😊 |
Beta Was this translation helpful? Give feedback.
Hey @cffls, it is deprecated because I was informed that the ledger team is also deprecating this query now that the ledger is moving to on-disk storage.
The UTxO is indexed by output references, not by addresses. This means that, searching by address requires a linear scan of the UTxO which is getting big. This is why on 1.33.0 that query has got a major performance hit (traversing millions of entries in the RAM is okay-ish, doing it from the disk is worse)... If it is eventually removed from the ledger, then sadly, I'll have to follow and remove it from Ogmios as I'd have no (sane) way to support this.
However, I have been aware of this issue for a while now and... bear with me for a fe…