Answer repeat queries from a cache
Turn on a local query cache, so repeat queries skip the warehouse: data apps reload faster and agents stop paying for the same query twice.
Set how old a result your queries accept, in .anfra/config.yml:
query:
default:
cache:
duration: 5mOr per data app, in createApp({ query: { default: { cache: { duration: '5m' } } } }). Inspect shows each query's hit or miss and age. Refresh reads from the warehouse again. Run anfra cache clean after fixing warehouse data. A query reuses only its own exact result. Learn more (opens in a new tab)