pragmaxim-com / ergo-uexplorer

Supplementary ergo chain explorer/analyzer with Scala/ZIO
MIT License
15 stars 1 forks source link

multi-set implementation for one2many indexes persistence #17

Closed pragmaxim closed 1 year ago

pragmaxim commented 1 year ago

Existing multiMap Map[PK, Map[SK, ?]] is not really that useful as we need many OneToMany persistent indexes Map[PK, Set[SK, ?]] ...

Whole uexplorer's datamodel will be composed of

This will have predictable both indexing and querying performance as unspent boxes h2 table should be accessed not so often with limited queries.

In case H2 db does not perform well, it is just one backend type, using Cassandra instead will be possible.