Skip to content

Commit

Permalink
perf: tweak fullsweep_after (#2122)
Browse files Browse the repository at this point in the history
* perf: tweak fullsweep_after

* perf: increase fullsweep_after for Schema
  • Loading branch information
Ziinc authored Jul 5, 2024
1 parent 311d330 commit bee38a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/logflare/source/bigquery/schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
8 changes: 1 addition & 7 deletions lib/logflare/source/recent_logs_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bee38a0

Please sign in to comment.