Skip to content
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

delete_range and delete_range_cf not implemented for TransactionDB or OptimisticTransactionDB #839

Open
mdecimus opened this issue Dec 1, 2023 · 3 comments

Comments

@mdecimus
Copy link

mdecimus commented Dec 1, 2023

Methods delete_range and delete_range_cf are only available when using DB but not on TransactionDB or OptimisticTransactionDB.

@vadim-su
Copy link
Contributor

Could you let me know if you found a solution?

@vadim-su
Copy link
Contributor

Well, I have made the solution for OptimisticTransactionDB. Although I am not entirely sure that the solution correctly utilizes a RocksDB function, it appears to be functioning properly for my needs 44d0f98

It can't use Transaction and TransactionDB because of restrictions of the original library, but I have been able to integrate these functions for the Optimistic version of db because Optimistic contains rocksdb_t as an inner db pointer. That's why I'm not sure about properly working 😅

@mdecimus
Copy link
Author

Could you let me know if you found a solution?

Not really, we will be manually deleting ranges until your PR gets merged. Thanks for it by the way!

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

No branches or pull requests

2 participants