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 cmd for db flattening #160

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Add cmd for db flattening #160

merged 1 commit into from
Jul 29, 2024

Conversation

strokovok
Copy link
Member

@strokovok strokovok commented Jul 29, 2024

Flattening an LSM (Log-Structured Merge-tree) database improves performance by reducing read amplification and decreasing the number of SSTables (Sorted String Tables) that need to be scanned during queries. In the context of LSM databases, data is initially written to a memory table (memtable) and then flushed to disk as immutable SSTables. Over time, these SSTables accumulate, leading to increased read costs. Flattening merges these SSTables, simplifying the data structure and significantly enhancing read efficiency.

@strokovok strokovok requested a review from spilin July 29, 2024 05:39
Copy link
Collaborator

@spilin spilin left a comment

Choose a reason for hiding this comment

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

LGTM

@spilin spilin merged commit 66b9b3b into main Jul 29, 2024
2 checks passed
@spilin spilin deleted the feat/db-flatten-cmd branch July 29, 2024 09: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.

2 participants