From 1c10131e3b6b70a7e8dcefc07941efb1df9084df Mon Sep 17 00:00:00 2001 From: gentle_hu Date: Tue, 2 Jan 2024 17:27:09 +0800 Subject: [PATCH] open opfusion bete feature --- script/impl/perf_config/tuners/gucs/optimizer.py | 7 +++++-- script/impl/perf_config/tuners/gucs/other.py | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/script/impl/perf_config/tuners/gucs/optimizer.py b/script/impl/perf_config/tuners/gucs/optimizer.py index 8ffa134..9cbc4fe 100644 --- a/script/impl/perf_config/tuners/gucs/optimizer.py +++ b/script/impl/perf_config/tuners/gucs/optimizer.py @@ -141,12 +141,15 @@ class OptBypassGUC(GUCTuneGroup): self.enable_opfusion = self.bind('enable_opfusion') self.enable_partition_opfusion = self.bind('enable_partition_opfusion') self.opfusion_debug_mode = self.bind('opfusion_debug_mode') + self.enable_beta_opfusion = self.bind('enable_beta_opfusion') def calculate(self): infos = Project.getGlobalPerfProbe() self.enable_opfusion.turn_on() - if infos.business.scenario == BsScenario.TP_PERFORMANCE and TblKind.havePartTbl(infos.business.rel_kind): - self.enable_partition_opfusion.turn_on() + if infos.business.scenario == BsScenario.TP_PERFORMANCE: + self.enable_beta_opfusion.turn_on() + if TblKind.havePartTbl(infos.business.rel_kind): + self.enable_partition_opfusion.turn_on() class OptExplainGUC(GUCTuneGroup): diff --git a/script/impl/perf_config/tuners/gucs/other.py b/script/impl/perf_config/tuners/gucs/other.py index bd5e93b..23293cc 100644 --- a/script/impl/perf_config/tuners/gucs/other.py +++ b/script/impl/perf_config/tuners/gucs/other.py @@ -159,7 +159,6 @@ class DevelopOptionGUC(GUCTuneGroup): self.support_batch_bind = self.bind('support_batch_bind') self.log_pagewriter = self.bind('log_pagewriter') self.advance_xlog_file_num = self.bind('advance_xlog_file_num') - self.enable_beta_opfusion = self.bind('enable_beta_opfusion') self.enable_csqual_pushdown = self.bind('enable_csqual_pushdown') self.string_hash_compatible = self.bind('string_hash_compatible') self.pldebugger_timeout = self.bind('pldebugger_timeout')