From bee38a0ed999ef4f1d56710d1a446fe8faeac718 Mon Sep 17 00:00:00 2001 From: Ziinc Date: Fri, 5 Jul 2024 22:02:47 +0800 Subject: [PATCH] perf: tweak fullsweep_after (#2122) * perf: tweak fullsweep_after * perf: increase fullsweep_after for Schema --- lib/logflare/source/bigquery/schema.ex | 2 +- lib/logflare/source/recent_logs_server.ex | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/logflare/source/bigquery/schema.ex b/lib/logflare/source/bigquery/schema.ex index 9d37c0609..4284e6570 100644 --- a/lib/logflare/source/bigquery/schema.ex +++ b/lib/logflare/source/bigquery/schema.ex @@ -26,7 +26,7 @@ defmodule Logflare.Source.BigQuery.Schema do GenServer.start_link(__MODULE__, args, name: name, spawn_opt: [ - fullsweep_after: 20 + fullsweep_after: 1_000 ], hibernate_after: 5_000 ) diff --git a/lib/logflare/source/recent_logs_server.ex b/lib/logflare/source/recent_logs_server.ex index 7372d0125..ae333125e 100644 --- a/lib/logflare/source/recent_logs_server.ex +++ b/lib/logflare/source/recent_logs_server.ex @@ -90,13 +90,7 @@ defmodule Logflare.Source.RecentLogsServer do ## Server def start_link(args) do - GenServer.start_link(__MODULE__, args, - name: Backends.via_source(args[:source], __MODULE__), - spawn_opt: [ - fullsweep_after: 20 - ], - hibernate_after: 5_000 - ) + GenServer.start_link(__MODULE__, args, name: Backends.via_source(args[:source], __MODULE__)) end ## Client