Closed rasheedk closed 3 years ago
@rasheedk Hey Rasheed! Could you please share schema of a cube you're trying to refresh? And what version of Cube.js do you use?
@paveltiunov I am using Cube version 0.17.0
`
cube(`OpportunityByCategory`, {
sql: `SELECT * FROM pricing_opportunity_by_category`,
title:` `,
description: `This chart shows test data`,
refreshKey: {
every: `10 second`
},
joins: {
},
measures: {
measure1: {
type: `max`,
title:`Measure1`,
sql:`repair`
},
measure2: {
type: `max`,
title:`measure2`,
sql:`maintenance`
}
},
dimensions: {
date: {
sql: `createdDate`,
type: `time`
}
}
});
`
@rasheedk Could you please update to the latest version and see if it changes something for you?
Also could you please try to enable https://cube.dev/docs/@cubejs-backend-server-core#options-reference-scheduled-refresh-timer
@paveltiunov having this issue too. Scheduled refresh doesn't work as expected. Getting Cache issues too often. renewQuery
doesn't update the query in runtime.
Tried to set refreshKeyRenewalThreshold: 1
. Will back with the result
Should be fixed in the latest versions. Please feel free to open a new issue if it still persists.
Cube js
<QueryRenderer />
component data not updated when component re renders even I have givenrenewQuery: true
in query.How can i refetch data again (Force refresh) from server without changing the query in Query renderer?