Maintenance
Days built by older logic
Each stage keeps the version of its logic with every day it builds, and a change that builds days differently raises the version. The days built with an older version show what the stage did before. This queues only those, at the first stage that built them with an older version: the stages after it build them again by themselves.
| Stage | Version | Built before | Queued |
|---|---|---|---|
Rebuild every day
After a change to the Preprocessor or Processor settings, every day was built with the old numbers. This queues all of them again. It does not reset the heatmap: until a day is rebuilt all the way, the heatmap keeps showing it as it was built before. Rebuild every day takes the days put first back to the order of their dates; Rebuild every day, keeping those put first leaves them ahead of the rest.
Reset the heatmap
Resetting the heatmap throws every heat tile away and adds back only the days that are processed with their latest data. The others go into the heatmap as they are rebuilt, so nothing old is left on it.
Read every file again
After a fix to how a file format is read, the points already taken from those files are stale. This reads every current file again, which also rebuilds the days they cover.
Backup
A backup is one zip of everything that cannot be made again: every file uploaded, with its versions, the image directories, the settings chosen on the pages and the Memory tool's timeframes. Everything else is made again from the files once they are read. The map can be fetched again in a few hours, so it is left out unless you ask for it.
Importing a backup adds only what is not here already. Nothing here is changed or deleted, except that a file the backup has a newer version of is superseded, as an upload of it would be.
A rebuild of a day deletes its rows and writes them again, and the Heatmapper rewrites a tile each time a day under it changes. PostgreSQL writes new rows into the space the old ones leave, but never gives it back: a table stays as large as it ever was, with its rows spread thin over its pages. A check says how much of the points, the heat, the statistics and the queue is space nothing uses, and what compacting each table would give back. It is worth it after a rebuild of every day.
Compacting writes a table and its indexes again, packed, beside the old ones, and locks it while it writes: the Processor waits for the points, the Heatmapper and the tile server for the heat. One table is compacted at a time. The room it makes is the database's; Docker's disk is a file on C: that does not shrink by itself, so giving the room back to Windows needs Docker Desktop's disk to be compacted as well.
The cloud's copy of the heatmap is rewritten batch by batch as home's is, and the inbox and Sensor Logger's readings are emptied as home stores them, which leaves space behind as at home. Compacting a table writes it again, packed, and locks it while it writes: the tile server waits for the copy of the heat, the upload and Sensor Logger for the inbox. Clearing the heatmap's copy gives all of its space back at once.
The cloud's database is out of this Monitor's reach: the link carries no maintenance to it. Open the cloud's maintenance page to check and compact it.
| Table | Takes | Compacted | Gives back | |
|---|---|---|---|---|
| All of them |