Clarification on every when used with SQL in refreshKey

Good morning!

I am using a refreshKey similar to this:

  refreshKey: {
    sql: `SELECT MAX(date) FROM table`,
    every: '1 hour'

My intent is that every hour Cube will check the SQL for the refreshKey to determine if it need to be updated or not. The documentation is not entirely clear if this is the case, although it does mention by “default Cube.js will check this refreshKey every 10 seconds”.

Is this how you should change the default?


Hi @mycah just checking back on this. Do you think the documentation is still unclear and if your change :point_up_2: worked?