Skip to content

Commit

Permalink
docs: scheduled refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov authored Jan 16, 2020
1 parent 305e4e1 commit 1afadb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/Cube.js-Backend/Caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ If you want to continously look for a new data you can use [Real Time Data Fetch
Please note `renewQuery` also triggers pre-aggregations refresh as well.

To keep pre-aggregations fresh Refresh Scheduler can be used.
All pre-aggregations intended to be refreshed during scheduled refresh run should be marked with [scheduledRefresh](pre-aggregations#scheduled-refresh) parameter.
There're `CubejsServerCore.runScheduledRefresh(context, queryingOptions)` and `CubejsServer.runScheduledRefresh(context, queryingOptions)` methods that should be invoked at least once a minute to populate queue for pre-aggregations refresh.
You can do it by using simple timer for example:

Expand Down

0 comments on commit 1afadb8

Please sign in to comment.