Skip to content

Commit

Permalink
perf: tweak LogEventsCache size and TTL
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Nov 4, 2024
1 parent cf2d62d commit 142515d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/logflare/logs/log_events_cache.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Logflare.Logs.LogEvents.Cache do
alias Logflare.Logs.LogEvents
alias Logflare.ContextCache
alias Logflare.LogEvent, as: LE
@ttl :timer.hours(1)
@ttl :timer.minutes(15)

@cache __MODULE__

Expand All @@ -19,7 +19,7 @@ defmodule Logflare.Logs.LogEvents.Cache do
:start_link,
[
@cache,
[expiration: expiration(default: @ttl), limit: limit(size: 5_000), stats: stats]
[expiration: expiration(default: @ttl), limit: limit(size: 2_500), stats: stats]
]
}
}
Expand Down

0 comments on commit 142515d

Please sign in to comment.