Skip to content

Feature/issue105 - #113

Merged
ElioNeto merged 3 commits into
mainfrom
feature/issue105
Apr 19, 2026
Merged

Feature/issue105#113
ElioNeto merged 3 commits into
mainfrom
feature/issue105

Conversation

@ElioNeto

@ElioNeto ElioNeto commented Apr 19, 2026

Copy link
Copy Markdown
Owner

📝 Description

🎯 Type of Change

  • ✨ New feature (feat:)
  • 🐛 Bug fix (fix:)
  • 📝 Documentation (docs:)
  • 🎨 Code style/refactor (style: / refactor:)
  • ⚡ Performance improvement (perf:)
  • ⚙️ Build/config changes (build: / chore:)
  • ✅ Tests (test:)

🔍 What Changed?

⚙️ Testing

  • All tests pass locally (cargo test)
  • Ran cargo fmt and cargo clippy
  • Added/updated tests for new functionality
  • Manually tested the changes

📸 Screenshots (if applicable)

📚 Related Issues

  • Closes #
  • Refs #

❗ Version Bump

  • Patch bump (default, auto-applied)
  • Minor bump (manually updated Cargo.toml to X.Y+1.0)
  • Major bump (manually updated Cargo.toml to X+1.0.0)

✅ Checklist

  • Code follows project conventions
  • Documentation updated (if needed)
  • CHANGELOG entry added (if significant change)
  • Breaking changes documented (if any)
  • Ready to merge to main and auto-release

Closes #105

ElioNeto and others added 3 commits April 19, 2026 15:58
…erge_tables

Co-authored-by: aider (openrouter/qwen/qwen3.5-flash-02-23) <aider@aider.chat>
Co-authored-by: aider (openrouter/qwen/qwen3.5-flash-02-23) <aider@aider.chat>
1. **Removed unused import** `crate::core::engine::Compaction` from `version_set.rs`
2. **Replaced `map_or(true, ...)` with `is_none_or(...)`** in the scan method for cleaner code
3. **Replaced `map_or(false, ...)` with `is_some_and(...)`** in the scan method
4. **Collapsed nested if statements** by combining conditions with `&&` and `seen_keys.insert()` directly
5. **Added `#[allow(clippy::type_complexity)]`** to the two methods with complex return types
6. **Fixed the flush logic** to properly trigger compaction when SSTable count exceeds threshold
7. **Fixed the scan method** to properly deduplicate keys using a HashSet and apply filters correctly

Co-authored-by: aider (openrouter/qwen/qwen3.5-flash-02-23) <aider@aider.chat>
@ElioNeto
ElioNeto merged commit 8ef1b89 into main Apr 19, 2026
8 checks passed
@ElioNeto
ElioNeto deleted the feature/issue105 branch April 19, 2026 19:24
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.

🔴 [Critical] No compaction: unbounded SSTable growth degrades reads over time

1 participant