mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 17:44:43 +03:00
8f85b110aa
* Configure ingest repo access/pool size If I'm not mistaken 3 is a sane default, the only inserts we're doing are: - session buffer dump - events buffer dump - GA import dump And all are serializable within their scopes? * Add IngestRepo * Start IngestRepo * Use IngestRepo for inserts * Annotate ClickhouseRepo as read_only So no insert* functions are expanded * Update moduledoc * rename alias * Fix default env var value so it can be casted * Use IngestRepo for migrations * Set default ingest pool size from 3 to 5 in case conns are restarting or else... * Ensure all Repo prometheus metrics are collected
14 lines
267 B
Elixir
14 lines
267 B
Elixir
defmodule Plausible.ClickhouseRepo.Migrations.AddTransferredFrom do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
alter table(:events) do
|
|
add(:transferred_from, :string)
|
|
end
|
|
|
|
alter table(:sessions) do
|
|
add(:transferred_from, :string)
|
|
end
|
|
end
|
|
end
|