-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Partition::clear #132
Comments
Does this |
Yes. Generally I find clearing a table to be an anti-pattern, because it's faster to just create a new partition. But with |
Thanks for your quick response. Could you please give an estimate by when this api would be available in release? |
Not right now, it should be pretty simple, there just needs to be some coordination added to make sure there are no outstanding compactions going on when clearing (there needs to be a write lock & the |
So in it's current form how to clear a partition efficiently instead of iterating and removing each item? Provided, in my use case I am holding a Holding a keyspace object instead of a partition in the struct and opening partition for each map operations is not feasible due to the write lock in |
Currently none, there are two ways really, either 1) a range tombstone, which can be transactional, or 2) this issue, which can not be transactional because it will simply nuke all the data.
It's an RwLock, so for the most time, the lock should not actually lock. |
Just run a "Nuke compaction" (followed by dropping all blob files if blob tree) - clear() is not transactional!!!
The text was updated successfully, but these errors were encountered: