Skip to content

Avoid creating a new page for every insert#148

Merged
syvb merged 2 commits intomainfrom
sv/fix-page-overuse
Nov 12, 2024
Merged

Avoid creating a new page for every insert#148
syvb merged 2 commits intomainfrom
sv/fix-page-overuse

Conversation

@syvb
Copy link
Copy Markdown
Contributor

@syvb syvb commented Nov 4, 2024

No description provided.

@syvb syvb force-pushed the sv/fix-page-overuse branch from ae9c87c to 92068a6 Compare November 5, 2024 17:17
@syvb syvb marked this pull request as ready for review November 5, 2024 17:33
@syvb syvb requested a review from a team as a code owner November 5, 2024 17:33
@syvb syvb requested a review from cevian November 5, 2024 17:33
@syvb syvb force-pushed the sv/fix-page-overuse branch 2 times, most recently from 2183545 to d69e95d Compare November 5, 2024 19:46
Copy link
Copy Markdown
Collaborator

@cevian cevian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Some changes requested

@cevian
Copy link
Copy Markdown
Collaborator

cevian commented Nov 5, 2024

Also can you describe the problem a bit more in the commit msg

@syvb syvb force-pushed the sv/fix-page-overuse branch 3 times, most recently from 0574e5e to 7e8dc75 Compare November 5, 2024 21:33
cevian
cevian previously approved these changes Nov 5, 2024
Currently, `insert_storage` in the access method creates a new Tape
to add the vector to, on every insert. This can cause a lot of empty
space in pages. This commit allows tapes to be resumed at the most
recent block (of the right tape), instead of always starting at a new
block. This allows `insert_storage` to continue writing into an existing
page instead of creating a new one.
@syvb syvb force-pushed the sv/fix-page-overuse branch from 42507fc to 10ce42e Compare November 6, 2024 05:03
Signed-off-by: Smitty <smitty@timescale.com>
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.

2 participants