1
0
mirror of git://f0xx.org/ac/ac-ms-graphs synced 2026-07-29 05:18:17 +03:00
This commit is contained in:
Anton Afanasyeu
2026-06-23 12:29:33 +02:00
commit 224dc80d6d
10 changed files with 727 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
-- SQLite graph_sessions indexes (table may already exist via GraphRepository::ensureSchema).
CREATE INDEX IF NOT EXISTS idx_graph_company_time ON graph_sessions (company_id, started_at_ms);
CREATE INDEX IF NOT EXISTS idx_graph_user_time ON graph_sessions (user_id, started_at_ms);
CREATE INDEX IF NOT EXISTS idx_graph_started ON graph_sessions (started_at_ms);
CREATE INDEX IF NOT EXISTS idx_graph_device ON graph_sessions (device_id);