Make viewport queries scale with what is shown, not the timeline
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Collapsed-duration summaries visited nearly every duration: pruning used durations' ends, which long durations push past any window, and long durations blocked whole-subtree shortcuts. SQLite now computes summaries in one statement over an index on starts (anchors found by range scans), and every backend skips subtrees that start too early to reach the window. SQLite bands and arcs come back in start order from an in-order walk that stops at the 257th match, instead of a recursive query that found every match before its LIMIT applied. Equivalence tests keep the previous summary traversals (SQLite, browser, PostgreSQL) and require identical results over random timelines; bands and arcs must equal a brute-force scan and, untruncated, the previous query's rows. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ti36soiZpKdSxKfvQLEcfY https://github.com/openchronology/timeline-app/commit/69e7df4191224cd954697a057643fb38ebf48ebf
Open Make viewport queries scale with what is shown, not the timeline in the timeline