ruby on rails - keen-io Multi-Analyse with difference timeframe -


i need help.

i'm using keenio , sdk ruby

  1. 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' } })

  1. 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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -