Repository navigation
Conversation
|
Workflow [PR], commit [9e0b45c] Summary: ❌
AI ReviewSummaryThis PR defers construction of text-index Tests
Final Verdict
|
|
|
||
| } | ||
|
|
||
| /// Constructing a text index object must not analyze the preprocessor and postprocessor expressions. |
There was a problem hiding this comment.
This regression test proves the lazy-construction semantics, but the PR is categorized as Performance Improvement and still does not show that DROP TABLE / DETACH TABLE / shutdown becomes measurably faster on the intended workload. Please add a focused benchmark or at least before/after timings for a table with many text-indexed parts so the changelog claim is backed by data.
|
📊 Cloud Performance Report ✅ AI verdict: This PR makes the full-text (text) secondary-index preprocessor/postprocessor build lazily on first real use instead of at index-object construction; the private and public diffs are identical. The standard ClickBench schema has no text index, so neither Q4 nor Q15 executes any changed code. Q15's flagged improvement (-21.8%) is off-path and has been downgraded to not-sure as run-to-run variance, and Q4's -13.5% was already correctly suppressed within master's current variance band [200,281] ms. No credible PR-attributable perf effect on these benchmarks. clickbenchFlagged queries (1 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 40/40 (100.00%) · Uncovered code |
| MergeTreeIndexTextPostprocessorPtr postprocessor; | ||
|
|
||
| private: | ||
| /// Preprocessor and postprocessor construction analyzes expressions, which is expensive. |
There was a problem hiding this comment.
@evillique Did you observe the regression live? How bad is it? And why is it expensive to analyze an expression? I mean, the preprocessor and postprocessors don't apply the expression to data unless a new text index is constructed or a SELECT query runs, but that is not what happens in a drop/shutdown of tables, no?
| @@ -0,0 +1,82 @@ | |||
| #include <gtest/gtest.h> | |||
There was a problem hiding this comment.
A XML performance test will be a lot more declarative and more maintainable than a C++ unit test.
|
CC: @Ergus who originally introduced the text index pre/postprocessor. |
Speed up
DROP TABLE,DETACH TABLE, and server shutdown for tables withtextindexes: build thepreprocessorandpostprocessorexpressions lazily on first use instead of in the index object constructor, which runs for every data part on part destruction just to compute cache keys.Related: #97772
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Speed up
DROP TABLE,DETACH TABLE, and server shutdown for tables withtextindexes withpreprocessororpostprocessorarguments.