Skip to content

Commit

Permalink
perf: adds fullsweep_after to search query executor (#2249)
Browse files Browse the repository at this point in the history
* perf: adds fullsweep_after to search query executor

* perf: increase fullsweep_after to 5k
  • Loading branch information
Ziinc authored Nov 7, 2024
1 parent 581cd6d commit 0dba184
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/logflare/logs/search/logs_search_query_executor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ defmodule Logflare.Logs.SearchQueryExecutor do
# API
def start_link(args) do
source = Keyword.get(args, :source)
GenServer.start_link(__MODULE__, args, name: Backends.via_source(source, __MODULE__))

GenServer.start_link(__MODULE__, args,
spawn_opt: [fullsweep_after: 5_000],
name: Backends.via_source(source, __MODULE__)
)
end

@impl true
Expand Down

0 comments on commit 0dba184

Please sign in to comment.