[FEAT MERGE] direct load performance optimize

Co-authored-by: suz-yang <suz.yang@foxmail.com>
Co-authored-by: ChangerR <dingjinchengyx@163.com>
Co-authored-by: leftgeek <1094669802@qq.com>
This commit is contained in:
coolfishchen
2024-07-03 07:17:17 +00:00
committed by ob-robot
parent f1de6400e5
commit 81bfa9f0ac
44 changed files with 644 additions and 73 deletions

View File

@ -77,7 +77,8 @@
"global_stats," \
"user_stats," \
"stattype_locked," \
"stale_stats) VALUES " \
"stale_stats," \
"spare1) VALUES " \
#define REPLACE_COL_STAT_SQL "REPLACE INTO __all_column_stat(tenant_id," \
"table_id," \
@ -919,7 +920,8 @@ int ObOptStatSqlService::get_table_stat_sql(const uint64_t tenant_id,
OB_FAIL(dml_splicer.add_column("global_stats", 0)) ||
OB_FAIL(dml_splicer.add_column("user_stats", 0)) ||
OB_FAIL(dml_splicer.add_column("stattype_locked", stat.get_stattype_locked())) ||
OB_FAIL(dml_splicer.add_column("stale_stats", 0))) {
OB_FAIL(dml_splicer.add_column("stale_stats", 0)) ||
OB_FAIL(dml_splicer.add_column("spare1", stat.get_sample_size()))) {
LOG_WARN("failed to add dml splicer column", K(ret));
} else if (OB_FAIL(dml_splicer.splice_values(sql_string))) {
LOG_WARN("failed to get sql string", K(ret));