question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create docs for reclaiming an index

See original GitHub issue

Related to deprecation of the wiki https://github.com/paritytech/wiki/pull/335

Old:

To reclaim an index I, you must be sure that I is currently mapped to a dead account (i.e. one with zero total balance). You need to craft a transaction that creates a new account by placing some balance B in it. B must satisfy these conditions:

B % 256 == 105

B / 256 % E == I

Where E is the quantized account index count:

E := (next_set_index * enum_set_size / 256 + 1) * 256

Given an amount to transfer A, you can calculate the lowest amount that is at least A, A' which will attempt to reclaim I as:

(Q(N / 256 + (E - 1 - I), E) + I) * 256 + N % 256

Where

N := Q(A + (256 - 1 - 105), 256) + 105

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
joepetrowskicommented, Jun 4, 2019

Could potentially just live with the Indices module reference docs

0reactions
shawntabrizicommented, Jul 2, 2019

@JoshOrndorff I think maintenance is handed off to the core dev team, but we are still on the hook for doing the first draft and getting it reviewed and merged in. But that could be different depending on who you ask so… ¯\(ツ)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Index API | Elasticsearch Guide [8.5] | Elastic
You can index a new JSON document with the _doc or _create resource. Using _create guarantees that the document is only indexed if...
Read more >
Free up disk space in Amazon OpenSearch service - AWS
To reclaim disk space immediately, you can delete an index instead of deleting individual documents. Or, you can also use the force merge ......
Read more >
Index cleanup and maintenance - IBM
If the objective is to reclaim space, use the REORG INDEXES command with the CLEANUP and RECLAIM EXTENTS parameters.
Read more >
elasticsearch: how to free store size after deleting documents
Deleting documents only flags these as deleted, so they would not be searched. To reclaim disk space, you have to optimize the index:...
Read more >
Documentation: 15: 25.2. Routine Reindexing - PostgreSQL
B-tree index pages that have become completely empty are reclaimed for re-use. However, there is still a possibility of inefficient use of space:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found