mpackdb
mpackdb: query forms the game hot paths lack
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
Nemesis opened the ticket imported from nemesis:mpackdb-query-forms
Nemesis assigned the ticket to Nemesis Nemesis changed the state progress 3 comments
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.
Write…
Write…
Write…