pingcap/tidb

plan builder is too costly

Open

#27.633 geöffnet am 27. Aug. 2021

Auf GitHub ansehen
 (3 Kommentare) (5 Reaktionen) (2 zugewiesene Personen)Go (6.186 Forks)batch import
help wantedtype/enhancement

Repository-Metriken

Stars
 (40.090 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 14T 4h) (346 gemergte PRs in 30 T)

Beschreibung

Enhancement

image

There are several apparent part in this picture:

  • generate pseudo statistics cause allocation every time
  • expression rewrite, from ast column name to expression column, the function takes a long time (maybe many columns?)
  • the shadow copy of the column name in expression rewriter

The whole flame graph is, too much allocation caused a lot of GC consumption in the runtime.

image

Maybe the same problem with this issue https://github.com/pingcap/tidb/issues/26868

Contributor Guide