Backfill and Incrementally Sync a Dataset
Backfill a dataset once, then keep it current with high-watermark incremental syncs
What is a High Watermark?
Setup
from datetime import UTC, datetime, timedelta
from pathlib import Path
import pandas as pd
DATASET_ID = "ercot_fuel_mix"
data_path = Path(f"{DATASET_ID}.csv")
# Read the time-index column from metadata instead of hard-coding it.
metadata = client.get_dataset_metadata(DATASET_ID)
TIME_INDEX_COLUMN = metadata["time_index_column"]Phase 1: Initial Backfill
Phase 2: Incremental Sync
Use Publish Time for Forecast Datasets
Initial Backfill for Large Datasets
Periodically Run a Full Reconciliation
Avoid Managing Your Own Incremental Sync
Last updated
Was this helpful?

