Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Add DeleteAll method to store type#402

Merged
codchen merged 3 commits intoevm-tempfrom
delete-all-in-range
Jan 24, 2024
Merged

Add DeleteAll method to store type#402
codchen merged 3 commits intoevm-tempfrom
delete-all-in-range

Conversation

@codchen
Copy link
Collaborator

@codchen codchen commented Jan 24, 2024

Describe your changes and provide context

Iterating with mergeiterator to get all keys and then deleting is extremely slow when there are >10 layers of cachekv. This PR adds a more efficient function to delete all keys within a range, without having to make recursive calls like mergeiterator.

Testing performed to validate your change

unit test on cachekv

philipsu522 and others added 2 commits January 24, 2024 20:30
## Describe your changes and provide context
Add migration handler to add new disable seqno parameter to chain. Note
that i verified that we already use default values so we can just set
the params to default instead of maintaining authParamsV1 and V2
## Testing performed to validate your change
- unit tests
- upgraded local chain, ensure that bank sends work
@codchen codchen force-pushed the delete-all-in-range branch from 6b22abf to b8508a6 Compare January 24, 2024 13:19
@codchen codchen merged commit fb71049 into evm-temp Jan 24, 2024
@codchen codchen deleted the delete-all-in-range branch January 24, 2024 14:54
stevenlanders pushed a commit that referenced this pull request Jan 30, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Jan 31, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
stevenlanders pushed a commit that referenced this pull request Feb 6, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
stevenlanders pushed a commit that referenced this pull request Feb 8, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Feb 28, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Feb 28, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Mar 1, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Mar 4, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Mar 11, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Mar 14, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Mar 26, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Mar 26, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Mar 27, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Apr 16, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Apr 19, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
udpatil pushed a commit that referenced this pull request Apr 19, 2024
## Describe your changes and provide context
Iterating with mergeiterator to get all keys and then deleting is
extremely slow when there are >10 layers of `cachekv`. This PR adds a
more efficient function to delete all keys within a range, without
having to make recursive calls like mergeiterator.

## Testing performed to validate your change
unit test on cachekv

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants