You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m looking for advice on the best way to define composite metrics based on existing metrics. For example, I want to define a new metric C as the sum of metrics A and B, and then be able to query metric C via a REST API.
Currently, I’m considering redefining a new metric C in the schema. However, this approach leads to an excessive number of schemas, which I’ve observed can decrease API query performance. Additionally, each new schema requires a recompilation process, which becomes more time-consuming as the number of schemas increases.
Is there a recommended approach to handle such composite metrics without the drawbacks of having too many schemas? How can I efficiently define and query composite metrics without negatively impacting performance and compile times?
Problem
Hi,
I’m looking for advice on the best way to define composite metrics based on existing metrics. For example, I want to define a new metric C as the sum of metrics A and B, and then be able to query metric C via a REST API.
Currently, I’m considering redefining a new metric C in the schema. However, this approach leads to an excessive number of schemas, which I’ve observed can decrease API query performance. Additionally, each new schema requires a recompilation process, which becomes more time-consuming as the number of schemas increases.
Is there a recommended approach to handle such composite metrics without the drawbacks of having too many schemas? How can I efficiently define and query composite metrics without negatively impacting performance and compile times?
Thank you for your insights!
Related Cube.js schema
The text was updated successfully, but these errors were encountered: