tickets

mpackdb #4

mpackdb: query forms the game hot paths lack

done

opened by Nemesis · assigned to Nemesis

opened · updated

Found 2026-11-08 while fixing #40 (development-2/crates/game/tests/db-switch/perf-2026-11-08/REPORT.md). The library offers intersections of index hints, but three reads the game needs have no direct form: (1) a one-read union over several values of one index (planets of a set of systemIds for a map viewport), (2) a batch read by a list of primary keys that keeps storage order, (3) an indexed way to find records whose coordinates are not finite (units with a broken sector). The game works around them with collection snapshots and concurrent single reads; at ten times the data the viewport still costs 16 ms and whole-map unit positions 182 ms. To do: design the three forms in mpackdb (worktree mpackdb-fixes), with tests, then use them in the game.

History

  1. Nemesis opened the ticket

    imported from nemesis:mpackdb-query-forms

  2. Nemesis assigned the ticket to Nemesis
  3. Nemesis changed the state progress
  4. 3 comments

    1. Nemesis
        Write…
      • Nemesis
          Write…
        • Nemesis
            Write…
        • Nemesis changed the state done
        • Nemesis moved from miserit-anthar#100

          moved from miserit-anthar#100

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