Skip to content

v0.3.2

Choose a tag to compare

@MathiasVDA MathiasVDA released this 01 Dec 06:41
· 5 commits to release/0.3.x since this release

A fix for map layers whose facet index the warm-up ran out of time for: on all of RINF, the tunnel tiles took seconds each. It brings two changes that the fix builds on: each dataset keeps its own map caches, and a facet index is built once when several requests ask for it.

Upgrading from 0.3.1

  • Store format. Unchanged: 0.3.2 opens 0.3.1 datasets as they are, and 0.3.1 opens datasets 0.3.2 wrote.
  • Map caches are per dataset. The tile cache's 256 MiB and the other map caches' limits now hold for each dataset, where all datasets shared them. A server with several mapped datasets can hold more for its map.

Changed

  • The map's tile caches belong to their dataset (#584, first step): kept tiles, shape previews, facet value labels, unfiltered and measured facet counts, failed computed facets and class sizes are dropped with the dataset when it is deleted or replaced, where they stayed in process-wide caches until pushed out. The tile cache's 256 MiB and the other caches' limits now hold per dataset, where they were shared by all datasets. mapCaches in /$/stats and /$/metrics now counts the kept measure= facet answers too (#627), which it left out.

Fixed

  • Tiles of a map layer whose facet index the warm-up ran out of time for were read with a query each, until the next write (#643). On all of RINF (101 graphs), the warm-up's five minutes ran out before the tunnels, the last of its 31 collections, whose geometry comes from the section they are part of: their tiles took 2 to 8 s each, empty ones too, and eight asked for at once took the server from 4.3 to 10.8 GB. The warm-up now makes the indexes it had no time for, or whose boxes it ran out of time reading, right after, in the background, one collection at a time, and names them in its log line; a tile that finds a collection without its index starts the same. On RINF's eight countries, z6 tunnel tiles take 1 to 5 ms with the index and 0.5 to 0.6 s without it.
  • A collection's facet index is built once when a measured facets request (measure=length)
    and the warm-up, or several such requests, find none at the same time: the others wait for that
    build instead of reading every feature again each (#628).