Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce optional global TypeInfoCache #3200

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 10, 2024

  1. Introduce optional global TypeInfoCache

    In the current implementation, `TypeInfoCache` is a per-connection
    cache. This means, over time, that the same type information is
    retrieved from the database copious times. For some DB systems, this
    has a negative cost/performance impact.
    
    Introduce an optional global `TypeInfoCache`. This is useful for
    cases where a single DB system is used in Production for all
    connections and there's no need for each connection to re-retrieve
    type info.
    
    - Extract the storage portion of `TypeInfoCache` into a new class,
    `TypeInfoCacheStorage`
    - Add new property, `GLOBAL_TYPE_INFO_CACHE` to enable a global cache
    - When enabled, the constant `TypeInfoCacheStorage GLOBAL_INSTANCE` is
    always used. Over the course of running a Production instance, this global
    cache should not need to query the database for type info.
    Randgalt committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    e4a9de8 View commit details
    Browse the repository at this point in the history