ruby on rails - keen-io Multi-Analyse with difference timeframe -
i need help.
i'm using keenio , sdk ruby
- can run in single query multiple types of analyses different time frame? multi-analysis, in each analyse set time frame.
for example:
keen.multi_analysis(:users, analyses: { week: { analysis_type: 'count', timeframe: 'this_7_days' }, { month: { analysis_type: 'count', timeframe: 'this_30_days' } })
- same in 1 difference tables.
p.s. maybe can via javascript?
thx!
per keen io api documentation, "multi-analysis lets run multiple types of analyses on same data." in other words single multi-analysis query must on same collection/timeframe/filters. if want query different timeframes or collections, need execute multiple queries.
as additional technical background: multi-analysis query can executed more efficiently running component parts independently, because on end events read database once , of computations performed in single pass. if component parts on different data there no performance benefit.
(i work platform engineer @ keen - hope explanation helped!)
Comments
Post a Comment