4 ms·
Why do you need to select all rows in your Cubejs section when you can directly run query in athena and get back the aggregates you need. Basically you select
by InGodsName 8y ago
Why do you need to select all rows in your Cubejs section when you can directly run query in athena and get back the aggregates you need.
Basically you select all rows then cubjs does something on those rows when you can infact directly run queries in Athena
Am i missing something?
- pavel_tiunov 8y agoIt actually works exactly as you describe. We generate SQL query to return aggregates based on SQL supplied in Cube.js schema. We never fetch raw data from SQL backend. Architecture overview can probably help to understand: https://github.com/statsbotco/cubejs-client#architecture https://github.com/statsbotco/cubejs-client#architecture