Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Stop queries for cancelled HTTP requests (#5998)

Artur Pataf2ac57db8b3a
diff --git a/config/runtime.exs b/config/runtime.exs
index afcc015705..25575faeff 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -628,7 +628,8 @@ config :plausible, Plausible.ClickhouseRepo,
transport_opts: ch_transport_opts,
settings: [
readonly: 1,
- join_algorithm: "direct,parallel_hash,hash"
+ join_algorithm: "direct,parallel_hash,hash",
+ cancel_http_readonly_queries_on_client_close: 1
]
config :plausible, Plausible.IngestRepo,