You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by ok...@apache.org on 2022/05/12 13:37:42 UTC

[madlib] 02/06: GLM: Disable ORCA to improve exec time

This is an automated email from the ASF dual-hosted git repository.

okislal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/madlib.git

commit 996b279edd6eb126f11aae7c80429afd063ff734
Author: Orhan Kislal <ok...@apache.org>
AuthorDate: Fri Apr 29 17:28:02 2022 +0300

    GLM: Disable ORCA to improve exec time
---
 src/ports/postgres/modules/glm/glm.py_in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/ports/postgres/modules/glm/glm.py_in b/src/ports/postgres/modules/glm/glm.py_in
index 742cb571..c5661472 100644
--- a/src/ports/postgres/modules/glm/glm.py_in
+++ b/src/ports/postgres/modules/glm/glm.py_in
@@ -10,6 +10,7 @@
 @brief Generalized Linear Models: Driver functions
 """
 import plpy
+from utilities.control import OptimizerControl
 from utilities.in_mem_group_control import GroupIterationController
 from utilities.utilities import unique_string
 from utilities.validate_args import explicit_bool_to_text
@@ -222,7 +223,8 @@ def __glm_compute(schema_madlib, tbl_source, tbl_output, col_dep_var, col_ind_va
         args['col_dep_var'] = "(" + col_dep_var + ")::integer"
 
     # REAL COMPUTATION
-    iteration_run = __compute_glm(args)
+    with OptimizerControl(False):
+        iteration_run = __compute_glm(args)
 
     if iteration_run >= optim_params['max_iter']:
         plpy.warning("GLM warning: the computation did not converge in " +