From ac0001225cb41441e2fe087010d49c21cd897562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Tue, 16 Jul 2024 12:21:06 -0600 Subject: [PATCH] Move database option for 1.3.2 to target_selection.yml --- python/target_selection/cartons/mwm_more_ob.py | 3 --- python/target_selection/config/target_selection.yml | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/python/target_selection/cartons/mwm_more_ob.py b/python/target_selection/cartons/mwm_more_ob.py index a7c2d76e..263d3696 100644 --- a/python/target_selection/cartons/mwm_more_ob.py +++ b/python/target_selection/cartons/mwm_more_ob.py @@ -145,7 +145,4 @@ def build_query(self, version_id, query_region=None): ) ) - self.database.execute_sql("SET LOCAL enable_bitmapscan = false;") - self.database.execute_sql("SET LOCAL enable_seqscan = false;") - return query diff --git a/python/target_selection/config/target_selection.yml b/python/target_selection/config/target_selection.yml index e7aac040..691def63 100644 --- a/python/target_selection/config/target_selection.yml +++ b/python/target_selection/config/target_selection.yml @@ -12,7 +12,9 @@ rp: [catalog_to_gaia_dr3_source, gaia_dr3_source, gaia_dr3_source.phot_rp_mean_mag] gaia_g: [catalog_to_gaia_dr3_source, gaia_dr3_source, gaia_dr3_source.phot_g_mean_mag] database_options: - work_mem: '1GB' + work_mem: '100MB' + enable_bitmapscan: false + enable_seqscan: false '1.2.2': xmatch_plan: 1.0.0