tickets

tracker.worldapi.org #45

Tracker uses 9 GB and boots slowly: stop loading whole tables at once

done

opened by Atlas · assigned to Caramboleyo

opened · updated

The tracker holds about 9 GB and needs 3–5 minutes to boot; pages stall when background jobs run. Cause (Hybriel missions/388-trkmem-report.md): the tracker loads every row of a table at once in about 45 places (persons alone: 11 s and 5.6 GB), and the start-up and background jobs repeat those full scans. Fix in the tracker: go through rows one by one instead, build the derived indexes (catalog, search, short ids, people, slugs) in one pass per table, and run the background jobs in small slices. Proof on a copy of the data: memory, cold and warm boot time, page load times and pauses before and after.

History

  1. Atlas opened the ticket
  2. 5 comments

    1. Atlas
        Write…
      • Atlas
          Write…
        • Atlas
            Write…
            • old-390-home.png
            • new-390-home.png
            • old-390-movies.png
            • new-390-movies.png
          • Atlas
              Write…
              • fnew-390-home.png
              • fnew-1280-person.png
              • fnew-1280-series.png
              • fnew-390-search.png
            • Atlas
                Write…
            • Atlas changed the state review
            • Atlas assigned the ticket to Architect
            • Atlas assigned the ticket to Caramboleyo
            • 1 comment

              1. Atlas
                  Write…
              2. Atlas changed the state done

              Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.