Skip to content

Conversation

@hacheigriega
Copy link
Member

Explanation of Changes

We add a new map from batch number to its data results to x/batching state in order to support simple pruning. In simple pruning we remove a batch and all its associated data if necessary to keep the number of batches at the module parameter NumBatchesToKeep.

Related PRs and Issues

Closes #671

Prune batches and their associated data at every block based on two new
module parameters NumBatchesToKeep and MaxBatchPrunePerBlock.
For pruning data results and their batch assignment data, we resort to
naive implementation because there is no mapping to data result objects
from batch number or data result ID. In this implementation we go through
`MaxDataResultsToCheckForPrune` items in the store starting from a random
point and delete those whose associated batches have been pruned.
We add a new map from batch number to its data results to x/batching state in order to support simple pruning. In simple pruning we remove a batch and all its associated data if necessary to keep the number of batches at the module parameter NumBatchesToKeep.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants