Repository navigation
feat(performance): Workload-Adaptive Optimization – Issue #230 (v1.9.0) - #4619
Merged
Merged
Conversation
8 tasks
… compendium §39.15 (Issue #230) Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/3ea5b8d5-d0ac-4051-8ca7-7698281d0fe4 Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Implement workload-adaptive optimization for performance domain
feat(performance): Workload-Adaptive Optimization – Issue #230 (v1.9.0)
Apr 13, 2026
makr-code
marked this pull request as ready for review
April 13, 2026 11:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wires the
WorkloadAdaptiveOptimizer(SIGMOD'19 "Adaptive Execution") into the build system and documents it. Implementation source files were already on the branch; this PR completes the integration.Description
Core implementation (
include/performance/workload_adaptive_optimizer.h+src/performance/workload_adaptive_optimizer.cpp) — already present:WorkloadTypeenum:OLTP / OLAP / MIXED / GRAPH / VECTOR / TIMESERIES / UNKNOWNWorkloadProfilesnapshot from a 512-query rolling observation window (read/write ratio, avg complexity, avg result size, concurrency, top-3 hot tables)OptimizationStrategyper workload type (JIT flag, thread pool size, cache MB, join algorithm, index type); predictive pool scaling atconcurrency × 1.25when load exceeds baseenable_auto_adapt(interval)) +AdaptationCallback(old, new, strategy)Build integration (
cmake/CMakeLists.txt):test_workload_adaptive_optimizerGTest target (mirrorstest_workload_predictorpattern)Documentation:
src/performance/ROADMAP.md— Phase 5 added (11 checkboxes), item marked complete in Completed section, Production Readiness Checklist updatedcompendium/docs/chapter_39_performance_tuning_cookbook.md— §39.15 with C++ API examples and full strategy reference tablecompendium/docs/appendix_d_feature_status.md— 3 GA rows forclassify_workload(),get_strategy(),enable_auto_adapt()Linked Issues
Type of Change
Breaking Change Checklist
VERSIONandCMakeLists.txtdocs/migration/### Removed/### Changedsection updatedTesting
16 focused tests in
tests/test_workload_adaptive_optimizer.cppcover construction, per-type classification (OLTP/OLAP/MIXED/VECTOR), strategy selection, predictive scaling,AdaptationCallbackdispatch, auto-adapt enable/disable, stats reset, and concurrentrecord_querythread safety.📚 Research & Knowledge (wenn applicable)
/docs/research/angelegt?/docs/research/implementation_influence/eingetragen?Relevante Quellen:
Checklist
[Unreleased]