Skip to content

v0.2.0

Choose a tag to compare

@tpolecat tpolecat released this 03 Jun 19:28
· 1642 commits to main since this release
186096d

This release adds caching for the Describe protocol exchange, which is used to validate that declared parameter and column types are consistent with the schema. Because the schema is typically static at runtime, we can cache the results of these checks on a per-pool basis and save an extra round-trip during each Prepare exchange.

Pooled Session constructors now have extra parameters for cache-tuning, as described in the associated doc:

The pool maintains a cache of queries and commands that have been checked against the schema,
eliminating the need to check them more than once. If your program is changing the schema on
the fly than you probably don't want this behavior; you can disable it by setting the
commandCache and queryCache parameters to zero.

By default both caches have size 1024.

This release also changes SkunkException to include the full diagnostic message in getMessage rather than only in toString. This improves error reporting with MUnit.