feat: optimize price history ingestion

This commit is contained in:
Stijnvandenbroek
2026-03-07 21:25:06 +00:00
parent 61abb37ef4
commit fea062fbaa
3 changed files with 21 additions and 11 deletions

View File

@@ -55,6 +55,7 @@ class FundaPriceHistoryConfig(Config):
"""Config for price history fetch."""
fetch_all: bool = False
staleness_days: int = 7
@asset(
@@ -371,6 +372,7 @@ def raw_funda_price_history(
_SQL_DIR,
"dml/select_new_price_history_listings.sql",
schema=_SCHEMA,
staleness_days=config.staleness_days,
)
)
result = conn.execute(query)