Skip to content

Make tile expire order configurable#2493

Open
joto wants to merge 1 commit into
osm2pgsql-dev:masterfrom
joto:expire-order
Open

Make tile expire order configurable#2493
joto wants to merge 1 commit into
osm2pgsql-dev:masterfrom
joto:expire-order

Conversation

@joto

@joto joto commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

When limiting the number of tiles to be expired with max_tiles_per_run we are ordering the tiles by first, i.e. oldest first. The new setting order_by allows this to be changed. It must be set to a proper SQL ORDER BY clause, the default is "first" as before.

A useful different order for instance is "last, first". This will order tiles first that have not been touched the longest.

When limiting the number of tiles to be expired with `max_tiles_per_run`
we are ordering the tiles by `first`, i.e. oldest first. The new setting
`order_by` allows this to be changed. It must be set to a proper SQL
ORDER BY clause, the default is "first" as before.

A useful different order for instance is "last, first". This will order
tiles first that have not been touched the longest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant