lab_code: dba_307_lab_ff4
title_en: "TiDB SQL Tuning Lab 5: Statistics Management"
title_zh: "TiDB SQL 调优实验 5: 统计信息管理"
title_ja: "TiDB SQL チューニング演習 5: 統計情報管理"
title_ko: "TiDB SQL 튜닝 실습 5: 통계 정보 관리"
description_en:
  In this hands-on lab, you test how statistics affect execution plans
  and the performance issues caused by the stale statistics.
description_zh: 在这个实验中，您将测试统计信息如何影响执行计划以及过时统计信息导致的性能问题。
description_ja: このハンズオン演習では、統計情報が実行計画にどのように影響するか、および古い統計情報によって引き起こされるパフォーマンスの問題をテストします。
description_ko: 이 실습에서는 통계 정보가 실행 계획에 미치는 영향과 오래된 통계 정보로 인해 발생하는 성능 문제를 테스트합니다.
splash_image_en: https://lab-static.pingcap.com/quick-demo/307-05.png
splash_image_zh: https://lab-static.pingcap.com/quick-demo/307-05.png
splash_image_ja: https://lab-static.pingcap.com/quick-demo/307-05.png
splash_image_ko: https://lab-static.pingcap.com/quick-demo/307-05.png
external_materials_en:
  - name: "Statistics Management Deck Template"
    url: https://docs.google.com/presentation/d/1IBrzDcoSCQqcjXXzX8UunRfW_J6LC2g2/edit?slide=id.p1#slide=id.p1
    employee_only: true
external_materials_ja:
  - name: "統計情報管理デッキテンプレート"
    url: https://docs.google.com/presentation/d/1EqnJovfGPFEZzHkWLM2m9ede5gWilVas/edit?slide=id.p1#slide=id.p1
    employee_only: true
external_materials_zh:
  - name: "统计信息管理演示文稿模板"
    url: https://docs.google.com/presentation/d/1IBrzDcoSCQqcjXXzX8UunRfW_J6LC2g2/edit?slide=id.p1#slide=id.p1
    employee_only: true
external_materials_ko:
  - name: "통계 정보 관리 실습 템플릿"
    url: https://docs.google.com/presentation/d/1IBrzDcoSCQqcjXXzX8UunRfW_J6LC2g2/edit?slide=id.p1#slide=id.p1
    employee_only: true
lab_level: Intermediate
category_en:
  - Application Migration
  - SQL Tuning
category_zh:
  - 应用迁移
  - SQL 调优
category_ja:
  - アプリケーション移行
  - SQL チューニング
category_ko:
  - 애플리케이션 마이그레이션
  - SQL 튜닝
authors:
  - Fei Dong (CEG)
  - Tony Huang (CEG)
delivery_type: Instructor-Led
tidb_environments:
  - TiDB Self-Managed
tidb_versions:
  - 7.5.4
target_audience:
  - Architect
  - Developer
  - DevOps
regions:
  aws:
    - oregon
    - tokyo
    - singapore
    - frankfurt
credits: 1
credit_redeemable: true
employee_only: false
estimated_duration_minutes: 90

requirements:
  - type: CloudStack

topology:
  - role: monitor
    node_count: 1
    ssh_user: ec2-user
    web_ssh: true
  - role: pd
    node_count: 1
  - role: kv
    node_count: 3
  - role: db
    node_count: 2

bootstrap:
  - name: "prepare monitor"
    type: "ShellScript"
    target:
      - monitor1
    script: ./scripts/prepare-monitor.sh
  - name: "prepare tidb"
    type: "ShellScript"
    target:
      - monitor1
    shell: |
      set -e
      /home/ec2-user/create-cluster-vinput.sh ${TIDB_VERSION} ${REGION_NAME} ./solution-topology-seven-nodes.yaml

features:
  enable_content_explain: false
