-
- Downloads
Clickhouse (#66)
* Get stats from clickhosue * Pull stats from clickhouse * Use correct Query namespace * Use Clickhouse in unit tests * Use Clickhouse in stats controller tests * Use fixtures for unit tests * Add Clickhouse to travis * Use Clickhouse session store for sessions * Add garbage collection to session store * Reload session state from Clickhouse on server restart * Query from sessions table * Trap exits in event write buffer * Run hydration without starting the whole app * Make session length 30 minutes * Revert changes to fingerprint schema * Remove clickhouse from fingerprint sessions * Flush buffers before shutdown * Use old stats when merging * Remove old session schema * Fix tests with CH sessions * Add has_pageviews? to Stats * Use CH in staging * Update schema * Fix test setup
Showing
- lib/mix/tasks/hydrate_clickhouse.ex 40 additions, 32 deletionslib/mix/tasks/hydrate_clickhouse.ex
- lib/plausible/clickhouse.ex 2 additions, 2 deletionslib/plausible/clickhouse.ex
- lib/plausible/event/clickhouse_schema.ex 30 additions, 0 deletionslib/plausible/event/clickhouse_schema.ex
- lib/plausible/session/clickhouse_schema.ex 7 additions, 2 deletionslib/plausible/session/clickhouse_schema.ex
- lib/plausible/stats/clickhouse.ex 15 additions, 12 deletionslib/plausible/stats/clickhouse.ex
- lib/plausible_web/controllers/api/stats_controller.ex 1 addition, 1 deletionlib/plausible_web/controllers/api/stats_controller.ex
- lib/plausible_web/controllers/stats_controller.ex 1 addition, 1 deletionlib/plausible_web/controllers/stats_controller.ex
- mix.exs 1 addition, 0 deletionsmix.exs
- mix.lock 1 addition, 0 deletionsmix.lock
- test/support/factory.ex 3 additions, 2 deletionstest/support/factory.ex
Loading
Please register or sign in to comment