Skip to content
  • Ali Ibrahim's avatar
    1c6e508a
    Cache database version in schema cache · 1c6e508a
    Ali Ibrahim authored
      * The database version will get cached in the schema cache file during the
        schema cache dump. When the database version check happens, the version will
        be pulled from the schema cache and thus avoid querying the database for
        the version.
      * If the schema cache file doesn't exist, we'll query the database for the
        version and cache it on the schema cache object.
      * To facilitate this change, all connection adapters now implement
        #get_database_version and #database_version. #database_version returns the
        value from the schema cache.
      * To take advantage of the cached database version, the database version check
        will now happen after the schema cache is set on the connection in the
        connection pool.
    1c6e508a
    Cache database version in schema cache
    Ali Ibrahim authored
      * The database version will get cached in the schema cache file during the
        schema cache dump. When the database version check happens, the version will
        be pulled from the schema cache and thus avoid querying the database for
        the version.
      * If the schema cache file doesn't exist, we'll query the database for the
        version and cache it on the schema cache object.
      * To facilitate this change, all connection adapters now implement
        #get_database_version and #database_version. #database_version returns the
        value from the schema cache.
      * To take advantage of the cached database version, the database version check
        will now happen after the schema cache is set on the connection in the
        connection pool.
Loading