Skip to content
quarry History Of Ticket f188f43b7f
Login

History Of Ticket f188f43b7f

Artifacts Associated With Ticket f188f43b7f

  1. Ticket change [9af194b55c] (rid 523) by dmestas on 2026-08-16 19:46:00:

    1. comment initialized to:
      Frames parses every artifact a store returns into one []Artifact before ingest publishes any of it. On sqlite that stream is 13.2GB, and quarry holds the parsed form of all 131,558 artifacts at once; tcl is larger. It survives today on a development machine and would not on a pkgsrc-scale store (~1.17M artifacts).
      
      This is the memory analogue of the JetStream overrun fixed in 44c86387. That change bounded what sits ON the stream by folding every 64MiB; it did not bound what sits in RAM before publishing, because watch() still receives the entire batch from one Frames call.
      
      Fix shape: give Frames a streaming form — a callback or iterator per artifact — so watch() publishes as it parses and never materialises the census. The wire format already supports it (parseFrames reads framed records sequentially); only the API shape forces buffering.
      
      Found while benchmarking zit frames: writing two 12GB dumps filled the disk and killed the demo server, which is what drew attention to the size of a single batch.
      
    2. status initialized to: "Open"
    3. title initialized to: "zitcli.Frames buffers the whole census in memory"
    4. type initialized to: "Performance"
  2. Ticket change [69fc45fd32] (rid 655) by dmestas on 2026-08-17 19:38:52:

    1. comment changed to:
      Landed in 05d01cbb. FramesEach streams each artifact to a callback rather than collecting the census; peak RSS on sqlite's 13.2GB stream measured at 0.48GB. Frames kept as a collecting wrapper for tests and small fixtures.
      
    2. resolution changed to: "Fixed"
    3. status changed to: "Closed"
  3. Ticket change [cc9303819a] (rid 857) by dmestas on 2026-08-18 18:40:05:

    1. Untracked field cmimetype: "text/x-markdown"
  4. Ticket change [0a2b1a4f45] (rid 12436) by zeitgeist on 2026-09-24 00:52:38:

    1. Untracked field number: "1"