1.1 KiB
1.1 KiB
Historical Load Plan
Date: 2026-03-23
Status: executable in MVP mode
1. Objective
Build initial canonical baseline for analytics by loading a broad slice of entity sets.
2. Preconditions
- OData access is healthy.
entity_sets.jsonor metadata is available.- Canonical DB is configured (
CANONICAL_DB_URL).
3. Run command
Example:
python scripts/run_refresh.py --mode historical --limit-per-set 500
Alternative explicit set list:
python scripts/run_refresh.py --mode historical --entity-set DocumentSales --entity-set RegisterAccounting
4. Acceptance checks
logs/refresh_last_run.jsonexists.- Run status is
successorpartial_success. store_stats.entities_total > 0.checkpoints_total > 0.
5. Recovery rules
- If run is
failed, fix connectivity/schema issue and rerun same command. - If run is
partial_success, rerun failed entity sets explicitly via--entity-set.
6. Post-load
After successful baseline load:
- Freeze closed periods policy in ops notes.
- Switch daily operations to incremental mode.