ruslandoga

Results 136 issues of ruslandoga

- https://github.com/plausible/ecto_ch/blob/4bddc6960e9a825307760bc560491eea5090ff8e/lib/ecto/adapters/clickhouse.ex#L44 - https://github.com/elixir-ecto/ecto_sql/blob/11dafbbd5f4a80d7ee0c43fb31f9d530a3a2cd99/lib/ecto/adapters/sql.ex#L554-L556

It doesn't seem like ClickHouse supports hints. In Plausible `query.hints` are [used](https://github.com/search?q=repo%3Aplausible%2Fanalytics+hints+language%3AElixir&type=code&l=Elixir) as a workaround to pass the [`SAMPLE` clause.](https://clickhouse.com/docs/en/sql-reference/statements/select/sample) Maybe it can be similar to [`input/1`](https://hexdocs.pm/ecto_ch/Ecto.Adapters.ClickHouse.API.html#input/1) helper function: ```elixir...

Right now this adapter forces the users to use native ClickHouse types like `UInt32`, but since ClickHouse supports ["aliased" type names](https://clickhouse.com/docs/en/operations/system-tables/data_type_families#system_tables-data_type_families) like `FLOAT` and `INTEGER`, we can use them in...

"Piping" the rows through an input function would make `insert_all` handle `DEFAULT` columns properly. This would also make `insert_all` more similar to other adapters. Refs: - https://clickhouse.com/docs/en/sql-reference/table-functions/input - https://github.com/plausible/ch#null-in-rowbinary

### Changes Closes #4269 This PR allows to configure Finch pools which are used by the Plausible HTTP client. Example [configuration](https://github.com/plausible/analytics/pull/3906) to enable proxying: ```elixir import Config if http_proxy =...

self-hosting

### Changes This PR aims to simplify permissions in `$DATA_DIR` volume mounted into Plausible container. After adding [automatic TLS](https://github.com/ruslandoga/plausible/pull/302) we would be mounting a volume in `docker-compose.yml` by default to...

self-hosting

### Changes Closes #4249 ### Tests - [ ] Automated tests have been added ### Changelog - [ ] Entry has been added to changelog ### Documentation - [x] This...

### Changes This PR standardizes PostgreSQL connection configuration on DATABASE_URL by soft-deprecating DATABASE_SOCKET_DIR and adding Unix sockets support in DATABASE_URL. Relevant: https://github.com/plausible/community-edition/pull/136 ### Tests - [x] Automated tests have been...

self-hosting