Skip to content

i18n(ja): fix mistranslations and dropped particles across the best-practices/ directory - #23888

Merged
qiancai merged 34 commits into
pingcap:i18n-ja-release-8.5from
yahonda:fix-best-practices-defects
Sep 18, 2026
Merged

qiancai merged 34 commits into
pingcap:i18n-ja-release-8.5from
yahonda:fix-best-practices-defects

Conversation

@yahonda

@yahonda yahonda commented Sep 16, 2026

Copy link
Copy Markdown
Member

What is changed, added or deleted? (Required)

Fixes a range of Japanese translation defects across all 16 files in best-practices/ (excluding _index.md, which was already clean), found during a full read-through review of the directory:

  • Mistranslated headings/terms: "Use stale read carefully" confused with generic "old things" (saas-best-practices.md), "load balancing" mistranslated as Raftバランシング (tidb-best-practices.md), cordoned mistranslated as 切断された (best-practices-on-public-cloud.md), watching script mistranslated as "look at the script" (best-practices-on-public-cloud.md), Health Check mistranslated as a medical checkup (haproxy-best-practices.md), a literal package name epel-release transliterated into katakana (haproxy-best-practices.md).
  • Dropped negation flipping "non-partitioned tables" into "partitioned tables" (tidb-partitioned-tables-best-practices.md).
  • Reversed table/column names in an example (tidb-best-practices.md).
  • Wrong particle direction reading as "configured FROM X TO Y" instead of "X is set to Y" (massive-regions-best-practices.md).
  • A dropped fallback tier in a 3-tier list (pd-scheduling-best-practices.md).
  • A scrambled subject/value sentence (three-nodes-hybrid-deployment.md).
  • An unclosed parenthesis and garbled two-argument function explanation (uuid.md).
  • Recurring MT-duplication artifacts such as "RaftRaft"/"RaftstoreRaftstore" (best-practices-on-public-cloud.md, high-concurrency-best-practices.md, massive-regions-best-practices.md).
  • A bold-span defect where a particle was trapped inside bold markers and AND/OR were bolded asymmetrically (multi-column-index-best-practices.md).
  • Register-inconsistent negative imperatives mixed within one parallel bullet list (pd-scheduling-best-practices.md).
  • A missing opening backtick in two YAML frontmatter summary fields (three-dc-local-read.md, uuid.md).
  • Numerous dropped particles (を/は/が/の), most following the recurring pattern of a particle dropped immediately after a closing backtick or link, spread across nearly every file in the directory.

Which TiDB version(s) do your changes apply to? (Required)

  • i18n-ja-release-8.5 (TiDB Japanese documentation for TiDB 8.5 versions)

What is the related PR or file link(s)?

  • This PR is translated from: N/A (fixes to existing Japanese translation)
  • Other reference link(s):

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Improved Japanese grammar, punctuation, terminology, and formatting across multiple best-practice guides.
    • Corrected and clarified technical descriptions covering indexing, partitioning, scheduling, migration, UUIDs, and cloud deployment.
    • Standardized terminology for clearer, more consistent documentation.
    • Clarified recommendations related to memory allocation, stale reads, local replica reads, and index usage.

yahonda and others added 24 commits September 16, 2026 14:07
…tices

- saas-best-practices.md: "Use stale read carefully" mistranslated as
  "read old things carefully" -- confuses the Stale Read feature name
  with generic "old things", contradicting the correct term used in
  the very next paragraph.
- tidb-partitioned-tables-best-practices.md: a dropped negation
  flipped "non-partitioned table" into "partitioned table" directly
  contradicting the section's own heading right above it; 3 more
  sites in a comparison list/table/details-summary where "Non-
  partitioned table" was rendered as bare パーティションテーブル,
  indistinguishable from its "partitioned" sibling rows; a severely
  scrambled recommendation sentence with a stray unclosed
  "(パーティション番号" fragment with no basis in EN.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…s-best-practices.md

Found during review: missing を before 定期的に更新する and before
サポートしていません.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ped particles in tidb-best-practices.md

- "load balancing" mistranslated as "Raftバランシング" (nonsensical),
  contradicting the correctly-translated ロードバランシング heading
  later in the same file.
- Table `t` and column `c` swapped in an example, self-contradicting
  the SQL statement shown in the same sentence.
- A false-friend translation of "on 2017-05-26" as "2017-05-26上の"
  (spatially "on top of" rather than "on that date").
- 2 dropped を particles.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… best-practices-on-public-cloud.md

- "cordoned node" (a Kubernetes term for marked-unschedulable)
  mistranslated as 切断された (disconnected); also restored the
  dropped "by cordoning it" mechanism from the preceding sentence.
- "watching script" mistranslated as スクリプトを見る (literally
  "look at the script") instead of 監視スクリプト, which the same
  file already uses correctly a few lines later.
- 3 sites of a recurring MT-duplication artifact ("Raft Raft Engine").
- 文/ステートメント inconsistency for "insert statements" within one
  bullet list.
- Several dropped particles (は x3, を x2, が x1) found while fixing
  the above, including one creating a run-on sentence.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…aproxy-best-practices.md

- "Health Check" mistranslated as 健康チェック (a medical-checkup
  false friend) instead of the standard ヘルスチェック term.
- Literal package name epel-release transliterated into katakana,
  inconsistent with its correct literal use in the same command a few
  lines below.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… particles in massive-regions-best-practices.md

- から/に particle used backwards, making "X is configured to 2" read
  as "configured FROM X TO 2".
- Duplicated "RaftstoreRaftstore" MT artifact.
- 4 dropped particles (が x3, を x1) found during review.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…n pd-scheduling-best-practices.md

- A dropped fallback tier: EN describes 3 tiers (zones -> racks ->
  hosts) but JA dropped the middle "schedule to racks" step entirely,
  losing real content.
- 3 sites mixing polite ないでください with plain ない across one
  parallel bullet list of negative constraints.
- A stray unmatched opening quote 「 with no closing 」.
- 2 dropped は particles.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…nodes-hybrid-deployment.md

A scrambled sentence read "the default value is
rocksdb.max-background-jobs, but it's set to 8" instead of "the
default value of rocksdb.max-background-jobs is 8" (subject and value
swapped). Also fixed 3 more dropped particles (の x2, は x1) found
while reviewing the surrounding paragraphs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…n uuid.md

- An unclosed parenthesis and dropped structure garbled the
  explanation of UUID_TO_BIN()'s one-argument vs two-argument forms.
- A missing opening backtick before \`BINARY(16)\` in the frontmatter
  summary.
- 2 dropped を particles.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…c-local-read.md summary

- A stray leftover untranslated "Stale" sitting directly beside its
  own correct translation "ステイル読み取り".
- A missing opening backtick before \`zone\`.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
EN bolds both **AND** and **OR** condition names, but JA only bolded
OR; separately, an object particle を was trapped inside its own bold
span with no EN counterpart at all.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ncy-best-practices.md

Duplicated "RaftRaft" (dropped グループ, should be "Raftグループでは")
plus 3 dropped particles found during review.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…-management-best-practices.md

Restore を/は/が/の particles dropped immediately after backticked
identifiers (TIDB_INDEX_USAGE, CLUSTER_TIDB_INDEX_USAGE,
schema_unused_indexes, LAST_ACCESS_TIME, PERCENTAGE_ACCESS_100) in two
headings and five sentences.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Restore を before 例にとる and before a linked 論理DDL文,
both missing after the linked/backticked term.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Restore を before 追加する, dropped after the linked
deploy-a-tidb-cluster-using-tiup reference.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Restore を before ご覧ください and before カスタマイズできます,
both dropped immediately after a linked term.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Restore を before 使用 and が before 解析されない, both dropped
right after the backticked `$` label-prefix character.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…d.md

Restore は before the RocksDB storage-engine sentence, ことで
connecting the Titan/compression-level links to the performance
improvement clause, and が before 推奨されます for gp3/Premium SSD
v2/pd-extreme, all dropped after a linked term.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Restore を before 読みいただく, dropped after the linked
TiDB Best Practices blog reference.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Restore を before 参考にして (dropped after the linked Load
balancing reference), before 大きく調整する (max-store-down-time),
and before 加算した (evict-leader-scheduler).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Restore を before ご覧ください, dropped after the linked
migration tool overview reference.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…t-practices.md

Restore の before 手順に従います, dropped after the linked
best-practices reference for non-clustered partitioned tables.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…t-practices.md

Restore の before パフォーマンスに関する調査結果 and は before the
DROP PARTITION comparison bullet, both dropped after the backticked
DROP PARTITION term.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ices.md

Restore を before 提供しています, dropped after the linked
schema_unused_indexes reference.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ti-chi-bot

ti-chi-bot Bot commented Sep 16, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign overvenus for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added missing-translation-status This PR does not have translation status info. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 16, 2026
@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

📝 Walkthrough

Walkthrough

The pull request updates Japanese best-practices documentation. It corrects grammar, terminology, formatting, and selected technical descriptions. It does not change code logic or configuration behavior.

Changes

Japanese documentation updates

Layer / File(s) Summary
Cloud and deployment guidance
best-practices/best-practices-on-public-cloud.md, best-practices/grafana-monitor-best-practices.md, best-practices/haproxy-best-practices.md, best-practices/readonly-nodes.md, best-practices/three-nodes-hybrid-deployment.md, best-practices/three-dc-local-read.md
Japanese grammar, terminology, punctuation, and link text are corrected. Technical values and behavior remain unchanged.
Query and index guidance
best-practices/ddl-introduction.md, best-practices/high-concurrency-best-practices.md, best-practices/index-management-best-practices.md, best-practices/multi-column-index-best-practices.md, best-practices/saas-best-practices.md, best-practices/tidb-best-practices.md, best-practices/tidb-partitioned-tables-best-practices.md, best-practices/uuid.md
DDL, index, concurrency, stale-read, TiDB, partitioning, and UUID text receives grammar and terminology corrections. One index-view description changes from “exclude” to “extract,” and the counter changes from “0 items” to “0 times.”
Scheduling and performance guidance
best-practices/massive-regions-best-practices.md, best-practices/pd-scheduling-best-practices.md
Raftstore, region, PD scheduling, and leader terminology is corrected. Configuration values and described behavior remain unchanged.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested reviewers: qiancai

Merge Risk: 🔵 Low · up to 28677

The localized wording may confuse readers about the relationship between deployment and topology configuration, but the impact is limited to documentation.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies Japanese translation fixes and the affected best-practices directory. It is concise and directly related to the main changes.
Description check ✅ Passed The description explains the changes, affected TiDB version, AI involvement, related translation status, and applicable change categories. Required sections are present and sufficiently complete.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

yahonda and others added 2 commits September 16, 2026 14:28
Restore the Azure disk product name to literal English in the link
text, matching its own literal use in the following sentence and the
literal treatment of every other disk product name in this file
(gp3, io2, pd-ssd, pd-extreme, Ultra Disk).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…st-practices.md

"TiKV master" refers to the tikv/tikv repository's master branch (the
link points to github.com/tikv/tikv/tree/master), not a "master node".
Restore it as a literal branch-name reference, matching the sibling
[`master`](.../tree/master) pattern already used in README.md, instead
of the misleading マスター rendering that implies a master/slave role.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
yahonda and others added 7 commits September 16, 2026 14:33
Kubernetes' own official Japanese documentation keeps "cordon" as
literal English (e.g. "cordonされたNode"), never katakanizing it.
Match that established convention instead of the katakana コルドン
used in the previous fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…est-practices.md

The JA text said schema_unused_indexes "excludes" (除外する) indexes
with zero recorded query activity, inverting the actual meaning:
per the docs-cn source (筛选出, "filter/select out") and the sentence
immediately after showing SELECT * FROM sys.schema_unused_indexes
returning exactly those indexes, the view actually extracts/surfaces
them, it does not exclude them. Fixed to 抽出する. Also removed a
stray space in クエリ アクティビティ and reworded "0 個" to "0 回" to
match "zero query activity" more naturally.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The heading translated "Hibernate Region" as 休止状態リージョン while
every other occurrence of this TiKV feature name in the same file
(summary, and 2 body sentences) keeps it literal as Hibernateリージョン.
Align the heading to match, since EN itself always writes "Hibernate
Region" literally, including in this exact heading.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…-best-practices.md

The file mixed literal English "Leader" (Region Leader, Raft Group
Leader) with katakana リーダー for the same concept, including both
forms within a single sentence at one point. EN itself capitalizes
this term inconsistently (Region Leader vs. leader election vs.
Region leader), so it is not a fixed literal identifier. Unify to
リーダー, matching this file's own majority usage and the established
corpus-wide convention (PDリーダー, リージョンリーダー).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…gions-best-practices.md

- "PD Leader" (literal English, in a heading and its body) contradicted
  the file's own summary and the corpus-wide convention of katakana
  PDリーダー. Unified to PDリーダー.
- "tick message" was rendered as fully-katakana ティックメッセージ at
  2 sites but as mixed "tick メッセージ" at a 3rd, within the same
  file. Unified to the file's majority form, ティックメッセージ.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…st-practices.md

A Note block used bolded literal "Leaderの排除" 3 times, standing out
against this file's otherwise near-universal use of katakana リーダー
(30+ occurrences). Unified to リーダーの排除 for consistency.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
"仕様" (specification) is not naturally something you "increase" in
Japanese; reworded both occurrences to 割り当て (allocation), matching
the intended meaning of "increase memory specifications" (i.e. the
amount of memory allocated).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 5


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 3bc92108-2dc8-45cc-a8d1-6a819761983e

📥 Commits

Reviewing files that changed from the base of the PR and between 09ec082 and a7f84e2.

📒 Files selected for processing (16)
  • best-practices/best-practices-on-public-cloud.md
  • best-practices/ddl-introduction.md
  • best-practices/grafana-monitor-best-practices.md
  • best-practices/haproxy-best-practices.md
  • best-practices/high-concurrency-best-practices.md
  • best-practices/index-management-best-practices.md
  • best-practices/massive-regions-best-practices.md
  • best-practices/multi-column-index-best-practices.md
  • best-practices/pd-scheduling-best-practices.md
  • best-practices/readonly-nodes.md
  • best-practices/saas-best-practices.md
  • best-practices/three-dc-local-read.md
  • best-practices/three-nodes-hybrid-deployment.md
  • best-practices/tidb-best-practices.md
  • best-practices/tidb-partitioned-tables-best-practices.md
  • best-practices/uuid.md

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Comment thread best-practices/grafana-monitor-best-practices.md Outdated
Comment thread best-practices/high-concurrency-best-practices.md Outdated
Comment thread best-practices/high-concurrency-best-practices.md Outdated
### `schema_unused_indexes`の仕組み {#how-schema-unused-indexes-works}

`schema_unused_indexes`ビューは`TIDB_INDEX_USAGE`から派生しており、最後の TiDB 再起動以降にクエリ アクティビティが 0 個記録されたインデックスを自動的に除外することを意味します
`schema_unused_indexes`ビューは`TIDB_INDEX_USAGE`から派生しており、最後の TiDB 再起動以降にクエリアクティビティが 0 回記録されたインデックスを自動的に抽出することを意味します

@coderabbitai coderabbitai Bot Sep 16, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

sed -n '145,190p' best-practices/index-management-best-practices.md
rg -n -C 3 'schema_unused_indexes|CLUSTER_TIDB_INDEX_USAGE|TIDB_INDEX_USAGE' . --glob '*.md' --glob '*.sql' --glob '*.go' 2>/dev/null | head -240

Repository: pingcap/docs

Length of output: 28833


🏁 Script executed:

#!/bin/bash
set -eu
file=$(fd -t f 'sys-schema-unused-indexes\.md$' . | head -1)
printf 'FILE=%s\n' "$file"
sed -n '1,240p' "$file"
printf '\n--- version references ---\n'
rg -n -C 4 'schema_unused_indexes|CLUSTER_TIDB_INDEX_USAGE|TIDB_INDEX_USAGE|restart|再起動|起動|8\.5' "$file" best-practices/index-management-best-practices.md releases --glob '*.md' | head -260

Repository: pingcap/docs

Length of output: 26546


🏁 Script executed:

#!/bin/bash
set -eu
file=$(fd -t f 'information-schema-tidb-index-usage\.md$' . | head -1)
printf 'FILE=%s\n' "$file"
rg -n -C 6 'CLUSTER_TIDB_INDEX_USAGE|restart|再起動|起動|memory|メモリ|version|v8\.|last' "$file" | head -260
printf '\n--- matching schema pages and branches ---\n'
fd -t f . | rg '(^|/)(v8\.5|8\.5|information-schema-tidb-index-usage|sys-schema-unused-indexes)'

Repository: pingcap/docs

Length of output: 1856


Describe the cluster-wide source and restart scope of schema_unused_indexes.

The view definition reads from information_schema.cluster_tidb_index_usage, which aggregates usage from all TiDB instances. Usage data is cleared when each instance restarts, so describe each instance's restart boundary rather than implying one cluster-wide restart.

Suggested replacement
Suggested change
`schema_unused_indexes`ビューは`TIDB_INDEX_USAGE`から派生しており、最後の TiDB 再起動以降にクエリアクティビティが 0 回記録されたインデックスを自動的に抽出することを意味します
`schema_unused_indexes`ビューは`CLUSTER_TIDB_INDEX_USAGE`から派生しており、 TiDB インスタンスの最後の起動以降、いずれの TiDB インスタンスでもアクセスが記録されていないインデックスを自動的に抽出します

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks — the underlying technical point is correct (verified against sys-schema/sys-schema-unused-indexes.md's actual view definition, which does SELECT ... FROM information_schema.cluster_tidb_index_usage ... GROUP BY ... HAVING sum(last_access_time) is null, so it aggregates per-instance restart data across the whole cluster, not a single "last TiDB restart").

However, this JA line is a faithful translation of the current EN source, which itself says the same thing:

The schema_unused_indexes view is derived from TIDB_INDEX_USAGE, meaning it automatically filters out indexes that have recorded zero query activity since the last TiDB restart.

Since this is an EN-side factual inaccuracy rather than a JA translation defect, I'll file a separate PR against the English release-8.5 source to fix it there, and let the fix propagate to this JA branch through the normal sync process rather than diverging JA from the current EN text in this PR. Declining the suggested JA-only edit here; not resolving this thread so it stays visible until the EN fix lands.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@yahonda, understood. The finding remains valid, but the correction belongs in the English release-8.5 source. Keeping this thread open until the English source update lands is appropriate.


✏️ Learnings added
Learnt from: yahonda
Repo: pingcap/docs PR: 23888
File: best-practices/index-management-best-practices.md:182-182
Timestamp: 2026-09-16T06:07:46.368Z
Learning: In `pingcap/docs`, `sys.schema_unused_indexes` derives its results from `information_schema.cluster_tidb_index_usage`. It aggregates index-usage data across TiDB instances, and each instance clears its usage data when that instance restarts. Japanese documentation that faithfully translates an inaccurate English source should normally be corrected through the English source and the standard translation-sync process rather than by a Japanese-only divergence.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

You are interacting with an AI system.

```

- パーティションキーを使用しないクエリのスキャンオーバーヘッドを削減するには、グローバルインデックスを作成する必要があります。グローバルインデックスは`DROP PARTITION`操作を遅くする可能性がありますが、ハッシュおよびキーパーティションテーブルは`DROP PARTITION`サポートしていません。したがって、これらのパーティションはほとんど切り捨てられないため、グローバルインデックスは実用的なソリューションです。例:
- パーティションキーを使用しないクエリのスキャンオーバーヘッドを削減するには、グローバルインデックスを作成する必要があります。グローバルインデックスは`DROP PARTITION`操作を遅くする可能性がありますが、ハッシュおよびキーパーティションテーブルは`DROP PARTITION`をサポートしていません。したがって、これらのパーティションはほとんど切り捨てられないため、グローバルインデックスは実用的なソリューションです。例:

@coderabbitai coderabbitai Bot Sep 16, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

sed -n '415,440p' best-practices/tidb-partitioned-tables-best-practices.md
rg -n -C 3 'HASH.*DROP PARTITION|KEY.*DROP PARTITION|DROP PARTITION.*HASH|DROP PARTITION.*KEY|ハッシュ.*DROP PARTITION|キーパーティション' . --glob '*.md' 2>/dev/null | head -240

Repository: pingcap/docs

Length of output: 11844


Describe the unsupported operation directly.

DROP PARTITION is not supported for HASH and KEY partitioned tables. The current wording says that these partitions are “rarely truncated,” which incorrectly describes frequency and can obscure the actual limitation.

Suggested change
- パーティションキーを使用しないクエリのスキャンオーバーヘッドを削減するには、グローバルインデックスを作成する必要があります。グローバルインデックスは`DROP PARTITION`操作を遅くする可能性がありますが、ハッシュおよびキーパーティションテーブルは`DROP PARTITION`をサポートしていません。したがって、これらのパーティションはほとんど切り捨てられないため、グローバルインデックスは実用的なソリューションです。例:
- パーティションキーを使用しないクエリのスキャンオーバーヘッドを削減するには、グローバルインデックスを作成する必要があります。グローバルインデックスは`DROP PARTITION`操作を遅くする可能性がありますが、ハッシュおよびキーパーティションテーブルは`DROP PARTITION`をサポートしていません。したがって、これらのテーブルでは`DROP PARTITION`によるパーティション削除を行えないため、グローバルインデックスは実用的なソリューションです。例:

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is a faithful translation of the current EN source, which contains the same "rarely truncated" framing:

Although global indexes can slow down DROP PARTITION operations, Hash and Key partitioned tables do not support DROP PARTITION. Therefore, global indexes are a practical solution because these partitions are rarely truncated.

Agreed this reads as a logical inconsistency (not supporting an operation at all isn't the same as rarely performing it) — but since the JA text mirrors this EN wording exactly, I'll raise the wording fix against the English release-8.5 source separately rather than diverging JA from current EN in this PR. Declining the suggested JA-only edit here; leaving this thread open until the EN fix lands.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@yahonda, understood. The Japanese text should remain aligned with the current English source in this PR.

The wording issue remains in the English release-8.5 source. Keep this thread open until the source correction is available.


✏️ Learnings added
Learnt from: yahonda
Repo: pingcap/docs PR: 23888
File: best-practices/tidb-partitioned-tables-best-practices.md:431-431
Timestamp: 2026-09-16T06:06:42.360Z
Learning: In `best-practices/tidb-partitioned-tables-best-practices.md`, the Japanese statement that Hash and Key partitioned tables are “rarely truncated” is a faithful translation of the current English `release-8.5` source. Correct the English source first to avoid a Japanese-only wording divergence.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

You are interacting with an AI system.

…plete predicates

- grafana-monitor-best-practices.md: separate the topology-update
  clause (add Grafana and Prometheus) from the TiUP-deploy link, which
  had been left as the object of 追加する after an earlier partial fix.
- high-concurrency-best-practices.md: add the honorific お prefix
  (お読みいただく, not 読みいただく) and complete the follower-read
  parenthetical (サポートしています, not the bare stem サポート).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: b8dbdf6c-49ed-485b-a7d3-4ba1459b590c

📥 Commits

Reviewing files that changed from the base of the PR and between a7f84e2 and 286776e.

📒 Files selected for processing (2)
  • best-practices/grafana-monitor-best-practices.md
  • best-practices/high-concurrency-best-practices.md

Included review availability: Your plan provides up to 4 included reviews per hour; 0 remain after this review.

Comment thread best-practices/grafana-monitor-best-practices.md
@qiancai qiancai added translation/no-need No need to translate this PR. and removed missing-translation-status This PR does not have translation status info. labels Sep 16, 2026
@ti-chi-bot ti-chi-bot Bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Sep 18, 2026
@ti-chi-bot

ti-chi-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown

[LGTM Timeline notifier]

Timeline:

  • 2026-09-18 08:30:49.469397788 +0000 UTC m=+366695.407055381: ☑️ agreed by qiancai.

@qiancai
qiancai merged commit ced867c into pingcap:i18n-ja-release-8.5 Sep 18, 2026
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-1-more-lgtm Indicates a PR needs 1 more LGTM. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. translation/no-need No need to translate this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants