Skip to content

Commit

Permalink
Double cache sizes now that StatementCache treats configured max size…
Browse files Browse the repository at this point in the history
… as absolute size and not half
  • Loading branch information
mpilquist committed Jan 15, 2025
1 parent c335f81 commit f6a00e0
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions modules/core/shared/src/main/scala/Session.scala
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,9 @@ object Session {
ssl: SSL = SSL.None,
parameters: Map[String, String] = Session.DefaultConnectionParameters,
socketOptions: List[SocketOption] = Session.DefaultSocketOptions,
commandCache: Int = 1024,
queryCache: Int = 1024,
parseCache: Int = 1024,
commandCache: Int = 2048,
queryCache: Int = 2048,
parseCache: Int = 2048,
readTimeout: Duration = Duration.Inf,
redactionStrategy: RedactionStrategy = RedactionStrategy.OptIn,
): Resource[F, Resource[F, Session[F]]] = {
Expand Down Expand Up @@ -470,9 +470,9 @@ object Session {
ssl: SSL = SSL.None,
parameters: Map[String, String] = Session.DefaultConnectionParameters,
socketOptions: List[SocketOption] = Session.DefaultSocketOptions,
commandCache: Int = 1024,
queryCache: Int = 1024,
parseCache: Int = 1024,
commandCache: Int = 2048,
queryCache: Int = 2048,
parseCache: Int = 2048,
readTimeout: Duration = Duration.Inf,
redactionStrategy: RedactionStrategy = RedactionStrategy.OptIn,
): Resource[F, Tracer[F] => Resource[F, Session[F]]] = {
Expand Down Expand Up @@ -508,9 +508,9 @@ object Session {
strategy: Typer.Strategy = Typer.Strategy.BuiltinsOnly,
ssl: SSL = SSL.None,
parameters: Map[String, String] = Session.DefaultConnectionParameters,
commandCache: Int = 1024,
queryCache: Int = 1024,
parseCache: Int = 1024,
commandCache: Int = 2048,
queryCache: Int = 2048,
parseCache: Int = 2048,
readTimeout: Duration = Duration.Inf,
redactionStrategy: RedactionStrategy = RedactionStrategy.OptIn,
): Resource[F, Session[F]] =
Expand All @@ -532,9 +532,9 @@ object Session {
strategy: Typer.Strategy = Typer.Strategy.BuiltinsOnly,
ssl: SSL = SSL.None,
parameters: Map[String, String] = Session.DefaultConnectionParameters,
commandCache: Int = 1024,
queryCache: Int = 1024,
parseCache: Int = 1024,
commandCache: Int = 2048,
queryCache: Int = 2048,
parseCache: Int = 2048,
readTimeout: Duration = Duration.Inf,
redactionStrategy: RedactionStrategy = RedactionStrategy.OptIn,
): Tracer[F] => Resource[F, Session[F]] =
Expand Down

0 comments on commit f6a00e0

Please sign in to comment.