ttl: document index scans for TTL jobs - #21927
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthrough新增 TTL 索引扫描系统变量文档,说明索引使用条件、关闭变量或无匹配索引时的回退行为,并补充 TTL 任务表中的 ChangesTTL 索引扫描文档
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: Merge Risk: 🔵 Low · up to 该文档新增 TTL 索引扫描规则,但索引类型术语存在误译和遗漏,可能导致用户错误判断某个索引是否会被 TTL 使用;应修正后合并。 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Advanced
Run ID: c183a37c-07e4-4b8d-bd2a-317bc26a4dab
📒 Files selected for processing (2)
system-variables.mdtime-to-live.md
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.
What is changed, added, or deleted? (Required)
Translate the TTL index scan documentation from pingcap/docs#23813.
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
AI agent involvement
Do your changes match any of the following descriptions?
Summary by CodeRabbit
tidb_ttl_enable_index_scan,默认值为ON,用于控制 TTL 任务是否使用符合条件的索引扫描。mysql.tidb_ttl_task中scan_index_id字段的含义,用于识别任务采用的扫描方式。