feat(backend): implement session coverage, resumable ingestion, deep year backfill, backoff rate-limit, and dynamic cache TTLs

This commit is contained in:
2026-05-25 13:52:43 -04:00
parent bc1c551a82
commit 937674f808
9 changed files with 731 additions and 50 deletions

View File

@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS session_coverage (
session_key INTEGER NOT NULL,
dataset TEXT NOT NULL,
status TEXT NOT NULL DEFAULT 'pending',
row_count INTEGER NOT NULL DEFAULT 0,
updated_at TEXT NOT NULL DEFAULT (datetime('now')),
error_msg TEXT,
PRIMARY KEY (session_key, dataset)
);