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

feat: overflow cells, writing overflow values #324

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

rphmeier
Copy link
Contributor

This handles the encoding of overflow cells and writing them in leaves.

In a leaf node, we use a 16-bit integer to encode the offset of each cell start. We take the high bit of this integer to encode whether the cell is an overflow cell or not.

When ingesting a value, if it's too large, we chunk it. Additionally, LeafUpdater::ingest has gained a callback for handling deletion of overflow cells. This will be fleshed out in the next PRs, along with loading of overflow values.

I am not focusing on optimization at all at the moment, as it's clear that the beatree update logic needs to be rewritten for parallelism in any case and any optimization at this stage would be wasted effort.

Copy link
Contributor Author

rphmeier commented Aug 25, 2024

@rphmeier rphmeier force-pushed the rh-overflow-pages-chunking branch from 789be31 to d2b7ad6 Compare August 25, 2024 17:35
@rphmeier rphmeier force-pushed the rh-write-overflow-cells branch from ce92f01 to 45c77dc Compare August 25, 2024 17:35
@rphmeier rphmeier force-pushed the rh-overflow-pages-chunking branch from d2b7ad6 to b149add Compare August 25, 2024 17:43
@rphmeier rphmeier force-pushed the rh-write-overflow-cells branch from 45c77dc to 9f01711 Compare August 25, 2024 17:43
@pepyakin pepyakin changed the base branch from rh-overflow-pages-chunking to graphite-base/324 August 26, 2024 11:51
@pepyakin pepyakin force-pushed the rh-write-overflow-cells branch from 9f01711 to f99549a Compare August 26, 2024 11:52
@pepyakin pepyakin changed the base branch from graphite-base/324 to master August 26, 2024 11:52
@pepyakin pepyakin force-pushed the rh-write-overflow-cells branch from f99549a to 3d02d9e Compare August 26, 2024 11:52
Copy link
Contributor Author

rphmeier commented Aug 26, 2024

Merge activity

  • Aug 26, 3:30 PM EDT: @rphmeier started a stack merge that includes this pull request via Graphite.
  • Aug 26, 3:30 PM EDT: @rphmeier merged this pull request with Graphite.

@rphmeier rphmeier merged commit b1185fd into master Aug 26, 2024
3 checks passed
@rphmeier rphmeier deleted the rh-write-overflow-cells branch August 26, 2024 19:30
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.

1 participant