You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One major reason to migrate is that Version 1might produce inaccurate estimates for equal/IN predicates because the Count-Min sketch can have hash collisions. For more information, see [Count-Min Sketch](#count-min-sketch). To avoid this issue, set `tidb_analyze_version = 2` and rerun `ANALYZE` on all objects.
347
349
348
-
要为切换统计信息版本做好 `ANALYZE`准备,请根据情况进行以下操作:
350
+
To prepare `ANALYZE`for migrating from Statistics Version 1 to Statistics Version 2:
349
351
350
-
-如果 `ANALYZE`语句是手动执行的,请手动统计每张需要统计的表:
352
+
-If the `ANALYZE`statement is executed manually, manually analyze every table to be analyzed.
-If TiDB automatically executes the `ANALYZE`statement because the auto-analysis has been enabled, after you set`tidb_analyze_version = 2`, TiDB gradually refreshes statistics to Version 2 through subsequent auto-analysis. Before Version 2 statistics are collected for an object, TiDB can continue to use its existing Version 1 statistics. To speed up the migration for important objects, run `ANALYZE`on them manually.
0 commit comments