Skip to content

Testing: measure a year-long archive at production width #76

Closed

Description

@mrcsin

Why

A production archive is a year. Every measurement this project has ever taken is against one day.

The whole test corpus runs on one seeded slice: one day, eight pens, about 272 000 raw rows, one day partition (docs/architecture/bench.md:24-29, SemiPlot.Tests.Integration/ArchiveTemplate.cs:13-21, seeder defaults at SemiPlot.Tools.ArchiveSeeder/SeederOptions.cs:13-17). Frame cost is measured by hand and never asserted (docs/architecture/testing-strategy.md:127-142). docs/plans/backlog.md:9-13 says it plainly: the decimation and extent paths have been exercised against the bench and a customer dump, not against production volumes.

Everything downstream is guesswork until this exists: the coarse cache (#75) has no budget, the minimap span policy (#78) has no evidence, the day-coverage query (#79) has no cost.

Wanted

  • Seed a year at production width: 365 days, 50 pens, all four layers, 365 day partitions. The seeder already does days and pens (--days, --pens); what is unknown is how long it takes and how large it gets.
  • Measure and record, as numbers in a document rather than an impression:
What Where it matters
Database size per layer, row counts per layer Retention and the coarse-cache budget
Startup catalogue and extent read The extent query crosses every tag and both ends of the raw layer (ArchiveStatements.cs:31-38)
History read at each layer, at the column ceiling, cold and warm The 0.5 s figure in the backlog is a one-day observation
EXPLAIN (ANALYZE) for the widest raw window the prefetch margin can ask for PostgresHistoryReadTests.cs:627 does this on one day
Frame cost during a drag with 50 pens The recorded 10 ms mean is 8 pens at 2048 columns
Memory held by the column buffers Directly bounds #75
  • Decide what stays as a permanent gate. A year-long fixture cannot run in CI on every push; a bounded subset can, and the rest becomes a documented bench run with recorded numbers and a date.

Notes

ExplainPlanTests already forbids a sequential scan on the day partitions (docs/architecture/bench.md:235). With 365 partitions, planning time itself becomes a number worth having.

Activity

  1. self-assigned this
    on Sep 10, 2026
  2. added
    enhancement
    on Sep 10, 2026
  3. mrcsin commented on Nov 12, 2026

    @mrcsin
    MemberAuthor

    Partly implemented in #171.

    Done:

    • A six-month working-day stand: converge --schedule shifts --days 183 --pens 50 --change-seconds 30, also as the six-months AppHost launch profile.
    • Measured and recorded in docs/architecture/bench.md ("The six-month stand", "The stand from the launcher"): seed time and peak memory, rows per layer, database size, recipe and operator marker counts, startup extent, archive-days, day-spans and marker reads, band reads, and frame time from a follow capture.

    Not done:

    • A year-long archive (365 day partitions) and planning time at that partition count.
    • Frame cost during a drag at 50 pens: frame time was measured from follow captures only.
    • The decision on a permanent CI gate over a bounded subset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions