mirror of
https://github.com/zvx-echo6/navi.git
synced 2026-08-26 17:31:37 +00:00
The three wilderness-scenario guards used table_exists() OR get_entry_point_count()==0 to check the index is non-empty — a full SELECT COUNT(*) that scanned the entire 2.94M-row table (~9-73s depending on load/cache). Add EntryPointIndex.has_entry_points() using SELECT EXISTS (SELECT 1 ... LIMIT 1), which short-circuits at the first row, and swap it into _route_A/_route_B/_route_C. get_entry_point_count() kept for admin-info/tests. 3 new tests: table missing -> False, empty -> False, rows -> True. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| navi_admin | ||
| navi_config | ||
| navi_contacts | ||
| navi_geo | ||
| navi_landclass | ||
| navi_offroute | ||
| navi_places | ||
| navi_traffic | ||