Add Partition Management as Physical DDL statements

Offen
#19,410 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
35/100
Issue-Typ
Dokumentation
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
sql

Rechercherichtung

Beginnen Sie mit dem Absatz „Physical DDL statements“ in der verknüpften Dokumentation zu ddl-introduction und vergleichen Sie dessen Formulierung mit den referenzierten Abschnitten zu partitionierten Tabellen, einschließlich Global Indexes. Aktualisieren Sie die Liste der Anweisungen so, dass sie die zutreffenden Vorgänge zur Partitionsverwaltung abdeckt, und überprüfen Sie, dass die resultierende Dokumentation korrekt wiedergibt, wann sie Daten kopieren oder Indizes neu erstellen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Change Request

Please answer the following questions before submitting your issue. Thanks!

  1. Describe what you find is inappropriate or missing in the existing docs.

in https://docs.pingcap.com/tidb/stable/ddl-introduction paragraph "Physical DDL statements" it says:
"Currently, physical DDL statements only include ADD INDEX and lossy column type changes", but Partition management statements like ALTER TABLE t REORGANIZE PARTITION ..., ALTER TABLE t PARTITION BY ... and ALTER TABLE t REMOVE PARTITIONING should also be considered as physical DDL statements, since they will both copy data to new partitions as well as recreate indexes. In addition, if using Global Indexes with partitioned tables, also DROP/TRUNCATE PARTITION will become Physical DDLs.

  1. Describe your suggestion or addition.
    "Currently, physical DDL statements include ADD INDEX, some partitioning management statements and lossy column type changes"

  2. Provide some reference materials (such as documents and websites) if you could.
    https://docs.pingcap.com/tidb/stable/ddl-introduction
    https://docs.pingcap.com/tidb/stable/partitioned-table#reorganize-partitions
    https://docs.pingcap.com/tidb/stable/partitioned-table#manage-hash-and-key-partitions
    https://docs.pingcap.com/tidb/stable/partitioned-table#convert-a-partitioned-table-to-a-non-partitioned-table
    https://docs.pingcap.com/tidb/stable/partitioned-table#partition-an-existing-table
    https://docs.pingcap.com/tidb/dev/partitioned-table#global-indexes

Vorherrschende Sprache
Python
Sterne
616
Forks
724
Ø Merge
2 T. 5 Std.
Gemergte PRs (30 T.)
168

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus pingcap/docs

Alle Issues in pingcap/docs

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.