Skip to content

Commit

Permalink
Move database option for 1.3.2 to target_selection.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jul 16, 2024
1 parent e93eab7 commit ac00012
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions python/target_selection/cartons/mwm_more_ob.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion python/target_selection/config/target_selection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac00012

Please sign in to comment.