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

Support for DROP INDEX #809

Closed
federico-razzoli opened this issue May 29, 2021 · 1 comment
Closed

Support for DROP INDEX #809

federico-razzoli opened this issue May 29, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@federico-razzoli
Copy link

What would you like to be added or enhanced

DROP INDEX <table> (<column>)

Why is this needed / Additional context

When a regular database grows too much, you can historicise some data: move them to some archive, and then delete them from the main database. With an immutable db, we can't do that, so it is important to avoid writing unnecessary data.

An index may be created by mistake, or could become unnecessary at some point. In that case it would be desirable to drop it and:

  1. If possible, the disk space it currently takes should be re-used in the future. But I understand that this could be against the immutable approach.
  2. Even if the index is not physically dropped, no entries should be added in the future.
  3. If you agree with point 2, if the index is re-created in the future, it could be possible to re-use the entries previously written on disk (at least for append-only indexes, eg timestamps).
@federico-razzoli federico-razzoli added the enhancement New feature or request label May 29, 2021
@mmeloni
Copy link
Contributor

mmeloni commented May 29, 2021

Hey @federico-razzoli . Since indexes are stored in an immutable store I think that 1 is not feasible at the moment. 2 and 3 should be possible, since indexes are wrote in an inner keyvalue store.

@ostafen ostafen closed this as completed Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants