cube icon indicating copy to clipboard operation
cube copied to clipboard

Runtime for Querying

Open ghostaccount737 opened this issue 7 years ago • 3 comments

What's the usual time complexity for querying given that the dimensions are too many (with/without pre-aggregations ) ?

ghostaccount737 avatar Jul 03 '19 05:07 ghostaccount737

@PVinay737 Hey Vinay! It's really great question. Actually it depends a lot of on amount of data, dimension cardinalities, database engine, etc. Could you please provide some more information on that?

paveltiunov avatar Jul 03 '19 18:07 paveltiunov

Just wanted to know how well cube.js workflow happens in different scenarios and maybe optimize it accordingly better data structures..etc

ghostaccount737 avatar Jul 03 '19 19:07 ghostaccount737

@PVinay737 I see. So as the rule of thumb no specific optimization is required until 10-100M of data points depending on time to insight requirements. From that point there're different scale strategies for cube.js which include caching configuration https://cube.dev/docs/caching, and pre-aggregations https://cube.dev/docs/pre-aggregations. In production cube.js is heavily battle tested on trillions data points sets and can provide subsecond response times in such setups with proper configuration.

paveltiunov avatar Jul 03 '19 20:07 paveltiunov