Skip to content

TotalHotkeyAlpha is severely bloated #1444

Description

@bdmason

At block 5175760 TotalHotkeyAlpha has 128252 entries, out of those 91835 (71.6%) have zero balances and 36417 have non zero balances.

It makes querying this storage item (for all entries, which is necessary in a few indexing scenarios) over 3 times slower than it needs to be, as well as bloating chain nodes.

The numbers for TotalHotkeyShares are similar (though I'd expect them to be the same):

Total: 128084
Zeros: 91835
Non-Zeros: 36249 <- a few less

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions