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

Add support for delete row #785

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

krishvishal
Copy link
Contributor

@krishvishal krishvishal commented Jan 26, 2025

Core delete tasks:

  • Implement free page functionality
  • Clear overflow pages if any before deleting their cells using free page.
  • Implement delete for leaf page
  • Balance after delete properly

Auxiliary tasks to make delete work properly:

  • Implement block coalescing in free_cell_range to reduce fragmentation.
  • Track page fragmentation in free_cell_range.
  • Update page offsets in drop_cell and update cell pointer array after dropping a cell.
  • Add TCL tasks

Closes #455


I will add support for balancing after delete once balance_nonroot is extended. In the current state of balance_nonroot balancing won't work after delete and corrupts page.

But delete itself is functional now.

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.

Delete Row support needed
1 participant