-
-
Notifications
You must be signed in to change notification settings - Fork 271
Closed
Labels
configRelates to Martin configurationRelates to Martin configuration
Description
It seems the automatic bbox boundary computation is frequently causes slowdowns on startup, and confusion among novice users. I personally also experienced it. Let's make bounds computation disabled by default.
Changes
- Add a new
--bounds
enum config option with valuesnone
(default) andauto
. TBD: Should it befull
,world
,all
orplanet
instead ofnone
? - Remove
--disable_bounds
option, or at least make it deprecated for now, and prevent its usage at the same time as--bounds
- Config should also support the same values, e.g.
bounds: auto
in addition tobounds: [-180,-90,180,90]
- Config should obsolete the
disabled_bounds
and instead add abounds
value to theauto_publish.tables
section - fromPgConfig
toPgCfgPublishType
- I think we should also move
default_srid
,max_feature_count
to theauto_publish.tables
section.
- I think we should also move
To consider
It might be good to do asynchronous bounds computation, where it gets done after Martin startup, and initially Martin uses full bounds until the computation is done... This might be a lot trickier though, because we will need to modify how all sources are stored and updated. At the moment, all sources are immutable and exist for the entire duration of the program, but this may change as part of the source auto-refresh work (ability to re-query the database to add new sources on the fly #288)
See also:
Metadata
Metadata
Assignees
Labels
configRelates to Martin configurationRelates to Martin configuration