Caching for queries

Since I couldn’t find any sources about query caching inside aw-server, here an excerpt from a discord discussion:

2024-06-24

BelKed: @ErikBjare Just curious — is there a specific reason for loading the Timeline (barchart) data in 24 requests (one for each hour; if we are talking about a day)? Wouldn’t it be faster to just send one request? :slight_smile:
ErikBjare: Yes it may be marginally faster, but by doing it this way we can cache each hour/request on the client, so that refreshes only get outdated bars. Getting all 24 (or 30 days/4 weeks/12 months) of bars can also take a while, and splitting them up prevents timeouts.

The server does not cache anything, but the client can cache data.

1 Like